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

fix: editor not update content when modelValue change and selection is out of range #44

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

KrialY
Copy link
Contributor

@KrialY KrialY commented Jun 20, 2024

When change the modalValue of CodeEditor, if the current selection is out of range, the code editor content will not change.I think reset the selection range is better.

If you select the end line, then click the "change" button, code editor content will not change.
image
CodeSandbox: https://codesandbox.io/p/devbox/laughing-bas-pn64jc?file=%2Fsrc%2Fcomponents%2FHelloWorld.vue%3A8%2C5

@KrialY KrialY changed the title fix: editor content not update content when modalValue change and selection is out of range fix: editor content not update content when modelValue change and selection is out of range Jun 20, 2024
@KrialY KrialY changed the title fix: editor content not update content when modelValue change and selection is out of range fix: editor not update content when modelValue change and selection is out of range Jun 20, 2024
@logue logue merged commit 0e70955 into logue:master Jul 11, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants