rennzhang / codemirror-editor-vue3

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

change event is not triggered #41

Closed Eijun closed 1 year ago

Eijun commented 1 year ago

Describe the bug

When I delete the value entirely at the first load of editor, the change event is not triggered.

version: 2.1.4

step

  1. select all code text in editor use command + A
  2. push "delete" button

In addition, the event is not triggered, so the connected model value is not changed.

Validations

rennzhang commented 1 year ago

Sorry, I can't come up with the problem you said.

Please update to the latest version to try again or provide a minimal reproducible example

Eijun commented 1 year ago

I checked that the problem disappeared after upgrading to the latest version.

Thank you for your help! 👍