Skip to content

Commit

Permalink
fix: disabled grouped options get extra multiselect__option--group cl…
Browse files Browse the repository at this point in the history
…ass (#1081) (#1125)

Thank you for the PR!
  • Loading branch information
akki-jat committed Mar 9, 2020
1 parent 85f0cc6 commit 73b57cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pointerMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export default {
},
groupHighlight (index, selectedGroup) {
if (!this.groupSelect) {
return ['multiselect__option--group', 'multiselect__option--disabled']
return [
'multiselect__option--disabled',
{ 'multiselect__option--group': selectedGroup.$isLabel }
];
}

const group = this.options.find(option => {
Expand Down

0 comments on commit 73b57cf

Please sign in to comment.