From 9b88b78b3d61e8fe81968d59b74592d5a53540b7 Mon Sep 17 00:00:00 2001 From: Nick Reiley Date: Wed, 1 Apr 2020 23:30:26 +0500 Subject: [PATCH] Fix email cursor jump (#18379) * add email input fixture to show cursor jump * fix cursor jump in email input Co-authored-by: Peter Potapov * add regression tests to ensure attributes are working Co-authored-by: Peter Potapov --- fixtures/dom/src/components/Header.js | 1 + .../EmailDisabledAttributesTestCase.js | 39 +++++++++++ .../EmailEnabledAttributesTestCase.js | 48 +++++++++++++ .../email-inputs/JumpingCursorTestCase.js | 39 +++++++++++ .../components/fixtures/email-inputs/index.js | 68 +++++++++++++++++++ .../react-dom/src/client/ReactDOMInput.js | 4 +- .../react-dom/src/events/ChangeEventPlugin.js | 8 ++- 7 files changed, 203 insertions(+), 4 deletions(-) create mode 100644 fixtures/dom/src/components/fixtures/email-inputs/EmailDisabledAttributesTestCase.js create mode 100644 fixtures/dom/src/components/fixtures/email-inputs/EmailEnabledAttributesTestCase.js create mode 100644 fixtures/dom/src/components/fixtures/email-inputs/JumpingCursorTestCase.js create mode 100644 fixtures/dom/src/components/fixtures/email-inputs/index.js diff --git a/fixtures/dom/src/components/Header.js b/fixtures/dom/src/components/Header.js index 77c1ecfc30da6..c2a8c8d945030 100644 --- a/fixtures/dom/src/components/Header.js +++ b/fixtures/dom/src/components/Header.js @@ -71,6 +71,7 @@ class Header extends React.Component { +