fix "multiple" attribute (#4323)

* fix "multiple" attribute

* change timeout in spin future
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-06-25 13:13:08 -07:00
1 parent f54e771247
commit dcf46ce81a
5 files changed
+16 -11

No files matched your search

+6 -3
View File
@@ -87,9 +87,12 @@ export function setAttributeInner(
setAttributeDefault(node, field, value);
// reset the selected value whenever multiple changes
// @ts-ignore
let options = node.options;
for (const option of options) {
option.selected = option.defaultSelected;
if (node.options !== null && node.options !== undefined) {
// @ts-ignore
let options = node.options;
for (const option of options) {
option.selected = option.defaultSelected;
}
}
break;