Update src/runtime/internal/dom.ts

pull/8517/head
Simon H 3 years ago committed by GitHub
parent f83707adbc
commit 1fbcb0262b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -641,7 +641,7 @@ export function set_input_type(input, type) {
}
export function set_style(node, key, value, important) {
if (value === null || value === undefined) {
if (value == null) {
node.style.removeProperty(key);
} else {
node.style.setProperty(key, value, important ? 'important' : '');

Loading…
Cancel
Save