File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,6 @@ class CollapsibleBuilder extends CompositeBuilder {
151
151
super (collapsible );
152
152
_collapsible = collapsible ;
153
153
// we'll start off as non-animatable so things dont animate at the start of the component creation
154
- _originalAnimatable = _collapsible .animatable ;
155
- _collapsible .animatable = false ;
156
154
_component .recursivePointerEvents = false ;
157
155
_header = new HBox ();
158
156
_header .percentWidth = 100 ;
@@ -182,6 +180,11 @@ class CollapsibleBuilder extends CompositeBuilder {
182
180
_collapsible .registerInternalEvents (true );
183
181
}
184
182
183
+ public override function onInitialize () {
184
+ _originalAnimatable = _collapsible .animatable ;
185
+ _collapsible .animatable = false ;
186
+ }
187
+
185
188
public override function onReady () {
186
189
super .onReady ();
187
190
_collapsible .animatable = _originalAnimatable ;
You can’t perform that action at this time.
0 commit comments