We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8390db0 commit 5a18646Copy full SHA for 5a18646
packages/yew/src/dom_bundle/btag/mod.rs
@@ -123,11 +123,16 @@ impl Reconcilable for VTag {
123
key,
124
..
125
} = self;
126
- slot.insert(parent, &el);
127
+ // Apply attributes BEFORE inserting the element into the DOM
128
+ // This is crucial for SVG animation elements where the animation
129
+ // starts immediately upon DOM insertion
130
let attributes = attributes.apply(root, &el);
131
let listeners = listeners.apply(root, &el);
132
133
+ // Now insert the element with attributes already set
134
+ slot.insert(parent, &el);
135
+
136
let inner = match self.inner {
137
VTagInner::Input(f) => {
138
let f = f.apply(root, el.unchecked_ref());
0 commit comments