Skip to content

Commit

Permalink
Merge pull request #1754 from shentao/akki-jat/713
Browse files Browse the repository at this point in the history
fix: default group deselect
  • Loading branch information
mattelen committed Feb 28, 2024
2 parents cc7fb8b + 85404fe commit 66da51f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/multiselectMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,9 @@ export default {
if (this.wholeGroupSelected(group)) {
this.$emit('remove', group[this.groupValues], this.id)

const groupValues = this.trackBy ? group[this.groupValues].map(val => val[this.trackBy]) : group[this.groupValues]
const newValue = this.internalValue.filter(
option => group[this.groupValues].indexOf(option) === -1
option => groupValues.indexOf(this.trackBy ? option[this.trackBy] : option) === -1
)

this.$emit('input', newValue, this.id)
Expand Down

0 comments on commit 66da51f

Please sign in to comment.