prevent unnecessary property update

pull/6809/head
Yuichiro Yamashita 5 years ago
parent fffe8c16b7
commit c53f06decd

@ -302,7 +302,9 @@ export function set_attributes(node: Element & ElementCSSInlineStyle, attributes
} else if (key === '__value') {
(node as any).value = node[key] = attributes[key];
} else if (descriptors[key] && descriptors[key].set) {
node[key] = attributes[key];
if (node[key] !== attributes[key]) {
node[key] = attributes[key];
}
} else {
attr(node, key, attributes[key]);
}

Loading…
Cancel
Save