monaco-editor
monaco-editor copied to clipboard
[Bug] :The selected character in the monaco editor cannot be deleted
Reproducible in vscode.dev or in VS Code Desktop?
- [X] Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- [X] Not reproducible in the monaco editor playground
Monaco Editor Playground Code
No response
Actual Behavior
In React, the useState parameter is used to control the display of the monaco editor and another component.
If another component is displayed first, when switching to the monaco editor, select the character in the monaco editor and press the Delete key, nothing happens.

Expected Behavior
It is expected that no matter how many sibling components there are, the monaco editor will display when displayed and function normally
Additional Context
No response
Please reproduce this issue in the playground. We cannot help you otherwise.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!