Open
Description
Description
The editor has rendered a long-text, when i make it blured, and refocus the editor it occurs a auo-scroll behavior.It is unexpected.It seems the dom-selection hasn't change when enter the code logic: code link
Recording
Sandbox
https://codesandbox.io/p/sandbox/n8tm84
Steps
To reproduce the behavior:
- Go to sanbox
- Click on top line of editor
- Click outer, make editor blured.
- Scroll down to the end line of editor
- Click on editor, make it focused, then occurs auto-scroll
Expectation
I think the auto-scroll behavior shouldn't occur, because i have selected a new postion.
Environment
- Slate Version: latest
- Operating System: MacOs
- Browser: Chrome
Context
After reading the source code, i found that when the code runs into function setDomSelection, neither the Slate selection nor the DOM selection updates to where I clicked.