You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome and Firefox:
Sometimes, when putting nested children with conditional maps inside of the open Slidedown, the endTransition function won't be called after some child component was mounted.
My guess is that the onTransitionEnd event won't always be fired for some reason, but I haven't found out why yet.
The text was updated successfully, but these errors were encountered:
Suppose that when changing the component props, its height has not changed, and closed = true. Then
endHeight=getComputedStyle(this.outerRef).height
The endHeight variable will turn out to be "auto".
The line below parseFloat (endHeight) will return "NaN", the condition will be satisfied, and the transitioning class will be assigned to the component.
The animation is not triggered, and the endTransition method will not be called, since the height has not changed. Therefore, the transitioning class will remain with the component.
As a solution, I see:
To get the height of a component is not using getComputedStyle, but getBoundingClientRect. So it is used in getSnapshotBeforeUpdate.
Chrome and Firefox:
Sometimes, when putting nested children with conditional maps inside of the open Slidedown, the endTransition function won't be called after some child component was mounted.
My guess is that the onTransitionEnd event won't always be fired for some reason, but I haven't found out why yet.
The text was updated successfully, but these errors were encountered: