Closed cloydlau closed 2 months ago
Thanks for reporting. The issue was that the editor still kept the old selection (like the caret is at the 3th character, which is invalid when the new contents is empty and doesn't ahve a 3rd character.
Fixed via https://github.com/josdejong/svelte-jsoneditor/commit/5ed8a86a6166064d8bd27af6299db18cdf762885 (not yet published)
Fix published now in v0.23.2
Hello,
Minimal reproduction:
Steps to reproduce:
It seems different from this one: https://github.com/josdejong/svelte-jsoneditor/issues/331