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

When using IME and Chrome, delete a new paragraph and enter a sentence, it is inserted in the wrong position. #18362

Closed
torounit opened this issue Nov 7, 2019 · 14 comments · Fixed by #19055
Assignees
Labels
[Package] Rich text /packages/rich-text [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@torounit
Copy link
Member

torounit commented Nov 7, 2019

Describe the bug

This problem occurs when inputting Japanese using IME and Google Chrome. ( not happen Firefox / Safari. Not yet tested on Edge or IE 11. )

Press Enter to create a new paragraph block. If you delete the new paragraph with the Backspace or delete key, the next text you type will be inserted at the beginning of the sentence or just after the .

To reproduce
Steps to reproduce the behavior:

  1. open https://wordpress.github.io/gutenberg/ or your Gutenberg on Chrome.
  2. Input text with IME enabled.
  3. Press the Enter key to create a new paragraph.
  4. Press the delete key ( or backspace ) to delete the new paragraph.
  5. Input text with IME enabled.
  6. Press space key to convert characters.
  7. See error

Expected behavior
Sentences are entered where the cursor is.

Screenshots
02
01

Desktop (please complete the following information):

  • OS: mac 10.14.6
  • Browser chrome
  • Version 78.0.3904.97

Additional context

@Shizumi
Copy link
Contributor

Shizumi commented Nov 7, 2019

Reproduced.

Desktop :

  • OS: mac 10.14.6
  • Browser chrome
  • Version 78.0.3904.87

It reproduces even without plug-in.

@kmix-39
Copy link

kmix-39 commented Nov 8, 2019

Reproduced.
OS: mac 10.14.6
Browser: chrome 78.0.3904.87(Official Build) & 78.0.3904.97(Official Build)
Gutenberg 6.8.0

But, Not Reproduced.
Browser: safari

@waviaei
Copy link
Contributor

waviaei commented Nov 8, 2019

Firstly, I have checked with combinations of the Core and the plugin. I found it only seems to happen when using the plugin. I am suspecting may be related to something that is in the plugin which are not yet merged into the core?

WordPress 5.2.4 = Not reproduced
WordPress 5.2.4 + Gutenberg 6.5.0 = Reproduced
WordPress 5.2.4 + Gutenberg 6.6.0 = Reproduced
WordPress 5.2.4 + Gutenberg 6.7.0 = Reproduced
WordPress 5.2.4 + Gutenberg 6.8.0 = Reproduced
WordPress 5.3-RC4 = Not reproduced
WordPress 5.3-RC4 + Gutenberg 6.7.0 = Reproduced
WordPress 5.3-RC4 + Gutenberg 6.8.0 = Reproduced

Secondly, it seems to happen only on new paragraph. Not on existing paragraphs.

Thirdly, as others reported, these were only reproduced in Chrome 78.0.3904.9 and 78.0.3904.87
Not in Safari (13.0.3) nor Firefox (69.0.1).

Tested in Mac OS 10.14.6. IME is ATOK.

@waviaei
Copy link
Contributor

waviaei commented Nov 8, 2019

I am going to restate the exact process which @torounit has written at the top. Because it seems to be very precise to reproduce it.

  1. Paragraph block. Type something using IME, and press confirm key (e.g. space key) to confirm at the end.
  2. Hit Return key, to start a new paragraph.
  3. With or without typing anything, hit "delete" key. Which should move the cursor back to previous paragraph.
  4. start typing something using IME, and press confirm key. This should cause the error, as reported above.

Notes:

  • At 3. hit "delete" key. If you hit "left" key -- which will only move the cursor back to previous paragraph block, without deleting the new paragraph block -- error does not occur. Even if you start typing something, as long as you go back by hitting delete key, it occurs.
  • Error only seems to occur on the block that is located at the bottom of the content. It does not occur on already written paragraphs that are not at the bottom, or newly inserted paragraph in the middle of the content.

5.2.4 + GB 6.8.

@ellatrix ellatrix added [Package] Rich text /packages/rich-text [Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended labels Nov 13, 2019
@ellatrix ellatrix added this to the Gutenberg 7.0 milestone Nov 13, 2019
@mono96
Copy link

mono96 commented Nov 15, 2019

Reproduced.

Tested on https://wordpress.github.io/gutenberg

OS: mac 10.14.6
Browser chrome Version 78.0.3904.97(Official Build)

and

OS: mac 10.15.1
Browser chrome Version 78.0.3904.97(Official Build)

But,
Not Reproduced.
Browser: safari

@torounit
Copy link
Member Author

@mono96 @waviaei @Shizumi @kmix-39

Share the same input results on https://input-inspector.now.sh/ .

@kmix-39
Copy link

kmix-39 commented Nov 16, 2019

safari:( Not Reproduced browser )
https://input-inspector.now.sh/profiles/Tw3WulcA5fNVhYhUUFQg
Google chrome: ( Reproduced browser )
https://input-inspector.now.sh/profiles/VsfCj9h1YrwPk3C8hbRF

@Shizumi
Copy link
Contributor

Shizumi commented Nov 19, 2019

Google chrome: ( Reproduced browser )
https://input-inspector.now.sh/profiles/FY0NmqodOIRcuavZ2Fhs

@inc2734
Copy link
Contributor

inc2734 commented Nov 19, 2019

Google Chrome 78.0.3904.87(Official Build)64bit
Reproduced.
https://input-inspector.now.sh/profiles/YjUorTzYBOkrOpZjVRds

Safari 13.0.3 (14608.3.10.10.1)
Not Reproduced.
https://input-inspector.now.sh/profiles/OrPgrXuMTOry1F5jR8jC

@waviaei
Copy link
Contributor

waviaei commented Nov 19, 2019

Chrome 78.0.3904.10. Mac OS 10.14.6. ATOK IME.
WP 5.3 + Gutenberg 6.9.0
Bug reproduced.

https://input-inspector.now.sh/profiles/U3VIHbWs6kp0Fn3KW0gD

173 = Enter, to go to new paragraph
179 = Backspace, to delete the new paragraph and go back to previous.
258 = Enter, to confirm the change → this moves the caret to the beginning of the paragraph without pasting the entered text.

@miminari
Copy link
Member

miminari commented Nov 20, 2019

Chrome 78.0.3904.97. Mac OS 10.14.6. Google IME.
Bug reproduced.

WordPress 5.3 = Reproduced
WordPress 5.3 + Gutenberg 6.9.0 = Reproduced

https://input-inspector.now.sh/profiles/zpkCHi6kwJHm0xj4azQn

@torounit
Copy link
Member Author

@ellatrix

The cursor no longer jumps !!!
Great! Thank you!

@ellatrix
Copy link
Member

Great to hear! :)

@kmix-39
Copy link

kmix-39 commented Dec 12, 2019

@ellatrix

Great!! Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Rich text /packages/rich-text [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants