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

Firefox Android: All keypresses at start of line are treated as Enter #2951

Closed
Macil opened this issue Jul 29, 2019 · 3 comments
Closed

Firefox Android: All keypresses at start of line are treated as Enter #2951

Macil opened this issue Jul 29, 2019 · 3 comments

Comments

@Macil
Copy link

Macil commented Jul 29, 2019

Do you want to request a feature or report a bug?

bug

What's the current behavior?

In Firefox Android, at the Slate JS front page rich text demo (https://www.slatejs.org/#/rich-text)

  • When you position the cursor at the start of a line, all keypresses (including backspace) are treated as Enter presses that add a newline.
  • After a newline is added anywhere, inserting (non-newline) text stops working entirely.

Mobile Chrome doesn't have this specific issue for me.

@jonathannen
Copy link

This bug is appearing in Firefox desktop too - Confirmed with:
Firefox 68.0.1 (64-bit) OSX

@jonathannen
Copy link

Just as an addendum - I've been getting this error when using slate-react. Reverting to slate-react 0.22.4 (and the appropriate slate version) fixes this. I'll log over at slate-react too.

@ianstormtaylor
Copy link
Owner

I believe that this may be fixed by #3093, which has changed a lot of the logic in Slate and slate-react especially. I'm going to close this out, but as always, feel free to open a new issue if it persists for you. Thanks for understanding.

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

No branches or pull requests

3 participants