Commit ecb97488 by srid12 Committed by Torkel Ödegaard

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

parent 38279131
......@@ -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;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment