Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 15, 2024
1 parent 485dd9b commit 0ccf5b2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function build_element_attributes(node, context) {
} else if (attribute.name !== 'defaultValue' && attribute.name !== 'defaultChecked') {
if (attribute.name === 'class') {
class_index = attributes.length;

if (attribute.metadata.is_dynamic_class) {
attributes.push({
...attribute,
Expand All @@ -98,11 +99,14 @@ export function build_element_attributes(node, context) {
)
}
});
} else {
attributes.push(attribute);
}
} else {
if (attribute.name === 'style') {
style_index = attributes.length;
}

attributes.push(attribute);
}
}
Expand Down

0 comments on commit 0ccf5b2

Please sign in to comment.