Skip to content

Commit 0ccf5b2

Browse files
committed
fix
1 parent 485dd9b commit 0ccf5b2

File tree

1 file changed

+4
-0
lines changed
  • packages/svelte/src/compiler/phases/3-transform/server/visitors/shared

1 file changed

+4
-0
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export function build_element_attributes(node, context) {
8686
} else if (attribute.name !== 'defaultValue' && attribute.name !== 'defaultChecked') {
8787
if (attribute.name === 'class') {
8888
class_index = attributes.length;
89+
8990
if (attribute.metadata.is_dynamic_class) {
9091
attributes.push({
9192
...attribute,
@@ -98,11 +99,14 @@ export function build_element_attributes(node, context) {
9899
)
99100
}
100101
});
102+
} else {
103+
attributes.push(attribute);
101104
}
102105
} else {
103106
if (attribute.name === 'style') {
104107
style_index = attributes.length;
105108
}
109+
106110
attributes.push(attribute);
107111
}
108112
}

0 commit comments

Comments
 (0)