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') { } 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) { } else if (descriptors[key] && descriptors[key].set) {
if (node[key] !== attributes[key]) {
node[key] = attributes[key]; node[key] = attributes[key];
}
} else { } else {
attr(node, key, attributes[key]); attr(node, key, attributes[key]);
} }

Loading…
Cancel
Save