marktext / muya

📄 Future markdown editor for web browser applications development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Press delete key in code block language input and cause bug

Jocs opened this issue · comments

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in muya.


Describe the bug
Create a code block, and edit the language input, and press delete key, then will cause bugs.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Code Block.
  2. Click in the language input area.
  3. Press delete key

Expected behavior
Nothing will hapen when the cursor is at the end input area.

Actual behavior
Pressing the delete key continuously causes the code block to no longer be editable

Operation System and Browser version (please complete the following information):

  • OS: macOS
  • Browser: Chrome

Muya Version
e.g: 0.10.11