fix: <input type=number> with spread operator breaks float data entry

pull/3495/head
Colin Casey 6 years ago
parent 5b4758f0f8
commit 2d06724979

@ -94,7 +94,9 @@ export function set_attributes(node: Element & ElementCSSInlineStyle, attributes
if (key === 'style') { if (key === 'style') {
node.style.cssText = attributes[key]; node.style.cssText = attributes[key];
} else if (key in node) { } else if (key in node) {
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