Skip to content

Commit 9be97d3

Browse files
committed
Fix onOptionRemove
1 parent 439923f commit 9be97d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/webpack.base.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { VueLoaderPlugin } = require('vue-loader');
33
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
44
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
55

6-
76
const env = process.env.NODE_ENV === 'production' ? 'production' : 'development';
87

98
const devtool = env === 'production' ? 'source-map' : 'eval-source-map';
@@ -61,6 +60,6 @@ module.exports = {
6160
new MiniCssExtractPlugin({
6261
filename: 'vue-multi-select-listbox.css',
6362
}),
64-
new BundleAnalyzerPlugin(),
63+
// new BundleAnalyzerPlugin(),
6564
],
6665
};

build/webpack.dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ module.exports = merge(baseWebpackConfig, {
1515
hotOnly: true,
1616
open: true,
1717
inline: true,
18-
port: 8080,
18+
port: 8085
1919
},
2020
});

src/components/MultiSelect/MultiSelect.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function getSelectedItemsFromValue(values, valueProperty, availableOptions) {
7070
7171
return option;
7272
});
73+
7374
selectedItems.push(item);
7475
});
7576
@@ -210,7 +211,7 @@ export default {
210211
let valueIndex = items.findIndex((item) => {
211212
if (this.reduceValueProperty) {
212213
return item && option
213-
&& (getValueFromOption(this.reduceValueProperty, item)
214+
&& (item
214215
=== getValueFromOption(this.reduceValueProperty, option));
215216
}
216217

0 commit comments

Comments
 (0)