mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4729 from GogoVega/fix-4728
Fix checkboxes are not updated when calling `typedInput("value", "")`
This commit is contained in:
commit
e408c6b376
@ -734,12 +734,12 @@
|
|||||||
}
|
}
|
||||||
if (menu.opts.multiple) {
|
if (menu.opts.multiple) {
|
||||||
var selected = {};
|
var selected = {};
|
||||||
this.value().split(",").forEach(function(f) {
|
this.value().split(",").forEach(function(f) {
|
||||||
selected[f] = true;
|
selected[f] = true;
|
||||||
})
|
});
|
||||||
menu.find('input[type="checkbox"]').each(function() {
|
menu.find('input[type="checkbox"]').each(function() {
|
||||||
$(this).prop("checked",selected[$(this).data('value')])
|
$(this).prop("checked", selected[$(this).data('value')] || false);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user