Update src/runtime/internal/dom.ts

pull/8412/head
Simon H 4 years ago committed by GitHub
parent a726adc313
commit 106b51a2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -321,7 +321,7 @@ export function set_attributes(node: Element & ElementCSSInlineStyle, attributes
node.style.cssText = attributes[key]; node.style.cssText = attributes[key];
} else if (key === '__value') { } else if (key === '__value') {
(node as any).value = node[key] = attributes[key]; (node as any).value = node[key] = attributes[key];
} else if (descriptors[key] && descriptors[key].set && always_set_through_attr.indexOf(key) === -1) { } else if (descriptors[key] && descriptors[key].set && always_set_through_set_attribute .indexOf(key) === -1) {
node[key] = attributes[key]; node[key] = attributes[key];
} else { } else {
attr(node, key, attributes[key]); attr(node, key, attributes[key]);

Loading…
Cancel
Save