slate icon indicating copy to clipboard operation
slate copied to clipboard

shadow-dom example features backwards text typing in Firefox

Open ottworks opened this issue 3 years ago • 4 comments

Description The cursor is being placed at the beginning of the text area after every character typed.

Recording Firefox: image

Sandbox https://www.slatejs.org/examples/shadow-dom

Steps To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/shadow-dom on Firefox
  2. Click anywhere in the editor
  3. Type anything

Expectation Chrome: image

Environment

  • Slate Version: 0.63.0
  • Operating System: Windows 10
  • Browser: Firefox 88.0.1

ottworks avatar May 20 '21 19:05 ottworks

Just adding a comment here to add another voice. This issue is quite BIG and makes the text editing experience unusable in a core part of our product. I see a fix to a related issue has been pushed in 0.76.0, but this has not resolved the issue in shadow dom. So still very much a relevant issue!

NikolajHoggins avatar Mar 25 '22 10:03 NikolajHoggins

Can confirm this happens both on Firefox as well as Safari.

@NikolajHoggins did you ever figure out a workaround or local patch?

idevelop avatar May 11 '22 21:05 idevelop

We really want to use slate as it is an incredible solution! However, this issue is a big problem for us. Removing Shadow DOMs is not an option, and we must support FireFox.

jameskyker avatar Sep 14 '22 21:09 jameskyker

Has anyone figured out a fix or local solution to this? We use slate in a shadow dom and want to avoid having to refactor our whole app off of it since we overlooked this breaking behavior.

ryanbrwr avatar Oct 30 '23 04:10 ryanbrwr