explanatory comment

pull/15323/head
Rich Harris 1 year ago
parent e52b534938
commit 6d40878852

@ -378,6 +378,7 @@ export function set_attributes(
element[`__${event_name}`] = undefined;
}
} else if (key === 'style') {
// avoid using the setter
set_attribute(element, key, value);
} else if (key === 'autofocus') {
autofocus(/** @type {HTMLElement} */ (element), Boolean(value));

Loading…
Cancel
Save