rennzhang / codemirror-editor-vue3

CodeMirror component for Vue3
https://rennzhang.github.io/codemirror-editor-vue3
MIT License
195 stars 39 forks source link

when delete all code, change emits not correct, #30

Closed OrangeCat3 closed 1 year ago

OrangeCat3 commented 1 year ago

Describe the bug

image

Validations

rennzhang commented 1 year ago

No such problem was found. Please provide a complete code case

iyjian commented 1 year ago

https://codesandbox.io/s/admiring-scooby-yub8zg?file=/src/App.vue

iyjian commented 1 year ago

@RennCheung the above is reproduce code

  1. select all code text in editor use ctrl + A
  2. enter "delete" button

the data.code won't change, you can see the text under the editor box.

rennzhang commented 1 year ago

The issue has been resolved. Please upgrade to the latest version

iyjian commented 1 year ago

thankyou