Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with enableLegacyFBSupport click handlers #19378

Merged
merged 1 commit into from Jul 16, 2020

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Jul 15, 2020

This PR fixes an internal issue where click event handlers would double invoke when mixed with sync click() events in the same event cycle. Funnily enough we already had a test that caught this that at the time couldn't be fixed with the old design and the assumption made back then was clearly incorrect. Now we've redesigned the event system, we can appropiately fix this and remove the old assumption.

@trueadm trueadm requested review from bvaughn and gaearon July 15, 2020 21:06
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 15, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6995565:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Jul 15, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 6995565

@sizebot
Copy link

sizebot commented Jul 15, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 6995565

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 15, 2020
@trueadm trueadm merged commit e387c98 into facebook:master Jul 16, 2020
@trueadm trueadm deleted the fix-legacy-click-bug branch July 16, 2020 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants