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 email cursor jump #18379

Merged
merged 3 commits into from
Apr 1, 2020
Merged

Conversation

bl00mber
Copy link
Contributor

fix #15418, #14551

Version of React: 16.13.1
Browser: Chrome 80

Previous behavior:
After deleting of second email separated by space cursor jumps to the beginning.
When typing a space in an empty email input and then literal, the space is deleted and cursor jumps to the beginning.

email-jump

Altered behavior:
Cursor not moving.

email-fixed

@bl00mber bl00mber force-pushed the fix-multiple-email-cursor-jump branch from 588238f to c5af268 Compare March 24, 2020 19:47
@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 588238f:

Sandbox Source
objective-river-rvpw3 Configuration
React input setState cursor issue Issue #15418
Formik Codesandbox Template Issue #15418

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 24, 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 67eff27:

Sandbox Source
runtime-wave-is0td Configuration
React input setState cursor issue Issue #15418
Formik Codesandbox Template Issue #15418

@sizebot
Copy link

sizebot commented Mar 24, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 67eff27

@sizebot
Copy link

sizebot commented Mar 24, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 67eff27

Co-authored-by: Peter Potapov <dr.potapoff-peter@yandex.ru>
@bl00mber bl00mber force-pushed the fix-multiple-email-cursor-jump branch 2 times, most recently from 1ff10e4 to ba2b222 Compare March 24, 2020 22:29
@bl00mber bl00mber changed the title Fix multiple email cursor jump Fix email cursor jump Mar 25, 2020
@bl00mber bl00mber force-pushed the fix-multiple-email-cursor-jump branch from ba2b222 to e9049e7 Compare March 25, 2020 00:33
@bl00mber bl00mber force-pushed the fix-multiple-email-cursor-jump branch from e9049e7 to 67eff27 Compare March 25, 2020 00:34
Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. The delay is technically a behavior change but we did a similar change to fix number bugs in 15.x in a minor. I think it's reasonable because the bug itself is really obnoxious.

@gaearon gaearon merged commit 9b88b78 into facebook:master Apr 1, 2020
gaearon added a commit that referenced this pull request Apr 1, 2020
gaearon added a commit that referenced this pull request Apr 1, 2020
* Revert "Fix email cursor jump (#18379)"

This reverts commit 9b88b78.

* Leave fixtures be
@gaearon
Copy link
Collaborator

gaearon commented Apr 1, 2020

I've changed my mind. I think this is possibly more risky. See my comment in #18459. We should definitely fix it but as a part of a more coordinated effort when we can squash many bugs at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field type="email" with multiple attribute cursor jumps to start
4 participants