Slate: [IME] FF/macOS: entering accented letters from the Accent Menu inserts double character

Created on 14 Aug 2017  Â·  4Comments  Â·  Source: ianstormtaylor/slate

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

There is a __bug__ in Firefox/macOS with entering an accented letter from the Accent Menu (by holding down a key and pressing the keys _1_ to _N_).

What's the current behavior?

At the subsequent key press (e.g. moving the caret with left/right arrow key), the non-accented character appears along with the accented one. See video here

What's the expected behavior?

A single, accented letter is inserted. Safari/Chrome work as expected.

Other RTEs

  • _Draft.js_ exhibits the same problem
  • _ProseMirror_ and _Quill_ don't seem to have it
âš‘ ime

Most helpful comment

This is still happening for me in "slate": "^0.44.12",
But I'm also able to reproduce this in the current demo editor from https://www.slatejs.org/#/rich-text
slate-accent-menu-bug

Should this be reopened @ianstormtaylor ?

Thanks

All 4 comments

I believe this is fixed in the latest version of Slate.

This is still happening for me in "slate": "^0.44.12",
But I'm also able to reproduce this in the current demo editor from https://www.slatejs.org/#/rich-text
slate-accent-menu-bug

Should this be reopened @ianstormtaylor ?

Thanks

This occurs in Chrome as well.

There's a PR for this that's looks ready to be merged: https://github.com/ianstormtaylor/slate/pull/3041

Will probably require a slate upgrade

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adrianclay picture adrianclay  Â·  3Comments

ianstormtaylor picture ianstormtaylor  Â·  3Comments

ianstormtaylor picture ianstormtaylor  Â·  3Comments

bengotow picture bengotow  Â·  3Comments

AlexeiAndreev picture AlexeiAndreev  Â·  3Comments