mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix checkboxes are not updated when calling typedInput("value", "")
This commit is contained in:
parent
da97c5d558
commit
67cdf3ef96
@ -830,7 +830,13 @@
|
||||
this.input.trigger('change',[this.propertyType,this.value()]);
|
||||
}
|
||||
} else {
|
||||
this.optionSelectLabel.text(o.length+" selected");
|
||||
this.optionSelectLabel.text(o.length + " selected");
|
||||
if (this.optionMenu) {
|
||||
this.optionMenu.find('input[type="checkbox"]').prop("checked", false);
|
||||
for (const selectedOption of (this.value()?.split(",") || [])) {
|
||||
this.optionMenu.find("[value='" + selectedOption + "']").find("input").prop("checked", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user