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: monaco-editor scroll problem when focus #237213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qirong77
Copy link

@qirong77 qirong77 commented Jan 3, 2025

Fix:microsoft/monaco-editor#4444
Reason:We should ensure that the selection is set to the desired position before calling the input.focus() method of dom , as the browser defaults to focusing on the last position.
Minimal Reproducible Example: monaco-editor-playground

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