fix "multiple" attribute (#4323)
* fix "multiple" attribute * change timeout in spin future
This commit is contained in:
1 parent
f54e771247
commit
dcf46ce81a
5 files changed
+16
-11
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user