-
Notifications
You must be signed in to change notification settings - Fork 50.6k
Closed
Labels
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When subscribing to DOM events it's possible to use capturing. However it seems that capturing takes place after the vanilla JavaScript bubbling phase. This results in an incorrect order of events unless all events are subscribed to via React which isn't always possible.
Here's an example that mimicks one of our use cases: https://jsbin.com/zuleceg/1/
What is the expected behavior?
A capturing event subscribed to within React, should take place before bubbling events subscribed to via vanilla JavaScript.
Which versions of React, and which browser / OS are affected by this issue?
Development edition, Chrome v64 x64
Reactions are currently unavailable