Selaa lähdekoodia

Templating: Clicking Selected should deselect all if 1 or more are already selected (#19104)

srid12 6 vuotta sitten
vanhempi
commit
ecb97488d8
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      public/app/core/directives/value_select_dropdown.ts

+ 1 - 1
public/app/core/directives/value_select_dropdown.ts

@@ -79,7 +79,7 @@ export class ValueSelectDropdownCtrl {
   clearSelections() {
     this.selectedValues = _.filter(this.options, { selected: true });
 
-    if (this.selectedValues.length > 1) {
+    if (this.selectedValues.length) {
       _.each(this.options, option => {
         option.selected = false;
       });