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
{{ message }}
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
bug: ReactTransitionEvents doesn't work in supported browsers #396
Issue is that you are registering TransitionEnd / AnimationEnd in browsers that support ontransitionend/onanimationend -> this leads that not existent event is registered in supported browsers and things don't work.
Expected/New behavior
register proper events cross-browser
Minimal reproduction of the problem with instructions
For instance react-redux-toaster is using ReactTransitionEvents for registering transition events.
With React works without issues
With Preact, the proper events are not called so it is not removed from store and stays in DOM
What is the motivation / use cases?
Some react libs are using ReactTransitionEvents for critical functionality ( like cleaning up store )
That is to say, having not investigated the TransitionEvents bit, this is
the route I have started with. Will investigate TransitionEvents shortly.
On Sat, Jun 10, 2017 at 11:54 AM, Thomas Wilson <thomas.paul.w@gmail.com>
wrote:
Activity
thomas-p-wilson commentedon Jun 10, 2017
Am having the exact same issue here, also with
react-redux-toastrin fact.developit commentedon Jun 10, 2017
Perhaps we can use the implementation from css transition group?
https://github.com/developit/preact-css-transition-group/blob/master/src/TransitionEvents.js#L74
thomas-p-wilson commentedon Jun 10, 2017
thomas-p-wilson commentedon Jun 10, 2017
thomas-p-wilson commentedon Jun 10, 2017
deepkolos commentedon Nov 12, 2019
have the same issue
the first one is created by preact , won't trigger when transitionend
the second is created by addEventlistener, will trigger when transitionend
i use ontransitionend as workround...