File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -335,9 +335,22 @@ class MultiComboBox extends UI5Element {
335
335
}
336
336
337
337
filterSelectedItems ( event ) {
338
+ if ( this . allItemsSelected ) {
339
+ this . filterSelected = true ;
340
+ return ;
341
+ }
342
+
338
343
this . filterSelected = event . target . pressed ;
339
344
}
340
345
346
+ get _showAllItemsButtonPressed ( ) {
347
+ return this . filterSelected || this . allItemsSelected ;
348
+ }
349
+
350
+ get allItemsSelected ( ) {
351
+ return this . items . length === this . selectedValues . length ;
352
+ }
353
+
341
354
get _inputDom ( ) {
342
355
return this . shadowRoot . querySelector ( "#ui5-multi-combobox-input" ) ;
343
356
}
Original file line number Diff line number Diff line change 44
44
class =" ui5-multi-combobox-toggle-button"
45
45
icon =" multiselect-all"
46
46
design =" Transparent"
47
- ?pressed ={{ filterSelected }}
47
+ ?pressed ={{ _showAllItemsButtonPressed }}
48
+ ?disabled ={{ allItemsSelected }}
48
49
@click =" {{ filterSelectedItems }} "
49
50
></ui5-togglebutton >
50
51
</div >
You can’t perform that action at this time.
0 commit comments