Skip to content

fix(events): use capture events#202

Merged
eddywashere merged 1 commit intoreactstrap:masterfrom
TheSharpieOne:fix/click-event-order
Oct 25, 2016
Merged

fix(events): use capture events#202
eddywashere merged 1 commit intoreactstrap:masterfrom
TheSharpieOne:fix/click-event-order

Conversation

@TheSharpieOne
Copy link
Copy Markdown
Member

Similar to a previous issue where an event was triggered AFTER some DOM manipulation which caused the event logic to run after things changed. This really only impacted when the thing that triggered the event was no longer in the DOM which changed the flow and triggered things to happen.

It is probably best to globally do the same thing, which is to handle the event as soon as possible using useCapture.

@eddywashere
Copy link
Copy Markdown
Member

+1. I thought I went through the few areas we're using events outside of SyntheticEvent to switch to useCapture. I should have made an issue to track. Thanks for knocking this out!

@eddywashere eddywashere merged commit 18d7d04 into reactstrap:master Oct 25, 2016
@TheSharpieOne TheSharpieOne deleted the fix/click-event-order branch October 25, 2016 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants