slate icon indicating copy to clipboard operation
slate copied to clipboard

Shadow DOM example is not working correctly

Open safiaZihmou opened this issue 1 year ago • 3 comments

Description Shadow dom example is not working properly. https://www.slatejs.org/examples/shadow-dom

Recording slate_example_issue

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

Steps To reproduce the behavior:

  1. Go to: https://www.slatejs.org/examples/shadow-dom
  2. Try adding text at the beginning (we can only add 1 letter)
  3. Try adding "Space" within the text (no space added)
  4. Try to modify the text. (the text is not modified)
  5. Try changing the text at the end (the text is deleted and the Slate example is broken)

Expectation We can modify, change text

Environment

  • chrome, Microsoft Edge, Firefox

safiaZihmou avatar Feb 27 '23 14:02 safiaZihmou

slate

Seemingly all I need to do to make it break is add a space and then a dot. " ." and it will break.

In the last example of the recording i add " f f f ." and it breaks on the "." again

NikolajHoggins avatar May 11 '23 08:05 NikolajHoggins

Seemingly all I need to do to make it break is add a space and then a dot. " ." and it will break.

In the last example of the recording i add " f f f ." and it breaks on the "." again

I noticed the same thing, but with any number or special character after a space.

Additionally, quickly typing "asdf" repeatedly will cause the same behavior.

caycecollins avatar Sep 01 '23 15:09 caycecollins

is there any progress here? 👀

A6Brgeuka avatar Jun 24 '24 19:06 A6Brgeuka