Skip to content

Capturing events trigger after vanilla bubbling events #12328

@IPWright83

Description

@IPWright83

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions