You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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:
Expectation
I think the auto-scroll behavior shouldn't occur, because i have selected a new postion.
Environment
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.
The text was updated successfully, but these errors were encountered: