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

Incorrect undo on multiple instances #42

Open
weeblr opened this issue Oct 20, 2021 · 0 comments
Open

Incorrect undo on multiple instances #42

weeblr opened this issue Oct 20, 2021 · 0 comments

Comments

@weeblr
Copy link

weeblr commented Oct 20, 2021

Hi there,

thank you for a great Svelte-ready component. I am testing out currently and using 2 editor instances on the same page.
It works well generally but the undo function has a problem:

  • make some changes in instance # 1
  • make some changes in instance # 2
  • click the Undo button on instance # 1

Undo works as expected on instance # 1, the problem is that it also undo the changes on instance # 2!

Looks like either the undo stack is shared between instances, or the undo event is passed to both instances.

Best regards

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

1 participant