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

Pressing enter multiple times on mobile = block added in the wrong spot (top of editor) #2287

Closed
ARH3 opened this issue Feb 23, 2023 · 0 comments · Fixed by #2570
Closed
Labels

Comments

@ARH3
Copy link

ARH3 commented Feb 23, 2023

Describe a bug
On mobile, it seems that the default behavior is if you press Enter once, it creates a new line. If you press enter twice , it creates another new line. However, if you press Enter a third time, it creates a new block at the top of the editor.

Steps to reproduce:

  1. On a mobile device (I am using pixel 7) go to the [editorjs.io demo](https://editorjs.io/) page.
  2. Type a few test words on the first line
  3. Press enter once (adds a soft line break - perfect)
  4. Press enter twice (adds a soft line break - great)
  5. Press enter a third time (add a new block at top of the editor - bad)

Expected behavior: Add yet another soft line break.

Screenshots:

Device, Browser, OS: Google Pixel 7, Chrome browser.

Editor.js version: I am using the latest version in my application, but as I mentioned, this happens on your demo also.

Plugins you use with their versions: I have a custom plugin + underline. But as mentioned, easy to replicate on your demo.

@ARH3 ARH3 added the bug label Feb 23, 2023
@ARH3 ARH3 changed the title Pressing enter multiple times on mobile = block added in the wrong spot (above instead of below) Pressing enter multiple times on mobile = block added in the wrong spot (top of editor) Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant