Skip to content

Conversation

@trueadm
Copy link
Contributor

@trueadm trueadm commented May 13, 2020

We recently uncovered a bug in the PressLegacy responder in React Flare. @necolas found a bug that occurs because we call preventDefault for Enter key presses. We should have only been doing this for Space key presses, otherwise it means we never get a corresponding click fire, because calling preventDefault in the key press phase cancels out the click. This PR fixes that, and also fixes the test that had the wrong semantics.

@trueadm trueadm requested a review from necolas May 13, 2020 11:16
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels May 13, 2020
@codesandbox-ci
Copy link

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 cd8d909:

Sandbox Source
fervent-noether-iztho Configuration

@sizebot
Copy link

sizebot commented May 13, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against cd8d909

@sizebot
Copy link

sizebot commented May 13, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against cd8d909

@trueadm trueadm merged commit 6514e4a into facebook:master May 13, 2020
@trueadm trueadm deleted the flare-fix-prevent-default branch May 13, 2020 12:59
@engprodigy
Copy link

Hi and a good day @trueadm . Please, how can I run a sample of react interactions lets say context menu in my front end application with the required flag enabled in my code or in my react build? Or for now it is only available for internal testing? Thanks for your anticipated response.

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.

5 participants