From ecb97488d86efe92ae699371ce8a2fdb5806fe3a Mon Sep 17 00:00:00 2001 From: srid12 Date: Sun, 15 Sep 2019 20:59:26 +0530 Subject: [PATCH] Templating: Clicking Selected should deselect all if 1 or more are already selected (#19104) --- public/app/core/directives/value_select_dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/directives/value_select_dropdown.ts b/public/app/core/directives/value_select_dropdown.ts index 48861d9f4a0..7675f7e28ec 100644 --- a/public/app/core/directives/value_select_dropdown.ts +++ b/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; });