We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b64a40 commit 6e0f13eCopy full SHA for 6e0f13e
packages/runtime/dom/dom.ts
@@ -31,8 +31,7 @@ export function createElement(node: VNode | VNode[]): Node {
31
if (key.startsWith("on")) {
32
const eventName = key.slice(2).toLowerCase();
33
el.addEventListener(eventName, value);
34
- }
35
- if (key === "style") {
+ } else if (key === "style") {
36
for (const styleKey of value) {
37
const styleValue = value[styleKey];
38
(el as HTMLElement).style[styleKey] = styleValue;
0 commit comments