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

After rendering the content using 'initialValue', ctrl+z will undo it to blank space, and this issue also exists in the demo on the official website #3266

Open
zealpane opened this issue Sep 18, 2024 · 1 comment
Labels

Comments

@zealpane
Copy link

Describe the bug

After rendering the content using 'initialValue', ctrl+z will undo it to blank space, and this issue also exists in the demo on the official website



To Reproduce

Steps to reproduce the behavior:

  1. Go to Editor
  2. Click on 'ctrl + z'
  3. See error
    

Expected behavior

Ctrl+Z should only be able to undo to the initialized value at the earliest, not blank



Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
    

Smartphone (please complete the following information):

  • Device: PC
  • OS: Windows 11
  • Browser Edge
  • Version 124.0.2478.39
@zealpane zealpane added the Bug label Sep 18, 2024
rawstream added a commit to rawstream/tui.editor that referenced this issue Sep 28, 2024
@rawstream
Copy link

rawstream commented Sep 28, 2024

@zealpane Opened a PR: #3270

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

No branches or pull requests

2 participants