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
...you will see unexpected behaviour if the argument n has a value such that {Point} will be expected to move from one Text to another.
In this example video, I am on a fork of the latest master branch, and the only change I have made is adding a button to the toolbar in the rich text example that does this.editor.moveForward(3) on click. I use this button twice. The first time is unexpected behaviour (the cursor mover more than 3 characters) because the selection movement crosses a border between two Text nodes, and the second time is expected behaviour because the selection movement stays within a single Text.
What’s the expected behavior?
The result of the command moves {Point} a distance of n characters in the appropriate direction.
The text was updated successfully, but these errors were encountered:
I believe that this may be fixed by #3093, which has changed a lot of the logic in Slate and slate-react especially. I'm going to close this out, but as always, feel free to open a new issue if it persists for you. Thanks for understanding.
Do you want to request a feature or report a bug?
Report a bug.
What’s the current behavior?
When using these two commands...
...you will see unexpected behaviour if the argument
n
has a value such that{Point}
will be expected to move from oneText
to another.In this example video, I am on a fork of the latest master branch, and the only change I have made is adding a button to the toolbar in the rich text example that does
this.editor.moveForward(3)
on click. I use this button twice. The first time is unexpected behaviour (the cursor mover more than 3 characters) because the selection movement crosses a border between twoText
nodes, and the second time is expected behaviour because the selection movement stays within a singleText
.What’s the expected behavior?
The result of the command moves {Point} a distance of
n
characters in the appropriate direction.The text was updated successfully, but these errors were encountered: