Incorrect filter when to deselect a group
dairsposito opened this issue · comments
vue-multiselect/src/multiselectMixin.js
Line 567 in 30667d0
When selected a group, if you want to deselect all group, it does nothing. That is because the new value returned in this case, its not filtering correctly.
I've solved the problem with the following filter:
const newValue = this.internalValue.filter( (option) => !group[this.groupValues] .map((item)=>item.id) .includes(option.id) );