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

Shadow DOM example is not working correctly #5321

Closed
safiaZihmou opened this issue Feb 27, 2023 · 3 comments · Fixed by #5676
Closed

Shadow DOM example is not working correctly #5321

safiaZihmou opened this issue Feb 27, 2023 · 3 comments · Fixed by #5676

Comments

@safiaZihmou
Copy link

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 safiaZihmou changed the title Shadow DOM example doas not working correctly Shadow DOM example is not working correctly Feb 27, 2023
@NikolajHoggins
Copy link

NikolajHoggins commented May 11, 2023

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

@caycecollins
Copy link

caycecollins commented Sep 1, 2023

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.

@A6Brgeuka
Copy link

is there any progress here? 👀

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

Successfully merging a pull request may close this issue.

4 participants