GlCollapsibleListbox > Select all/reset buttons not shown/hidden properly with grouped items
For GlCollapsibleListbox with multiple: true
and items provided as groups, the Select all is always shown. It does not hide (and hence show the reset button) when all items are selected.
Solution
The showSelectAllButton
and showResetButton
computed properties compared this.items.length
to this.selected.length
to check whether all options are selected, but this.items.length
would contain the amount of groups and not options when grouped items are used.
Instead, a possible solution could be to use this.flattenedOptions.length
.