mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 09:29:49 +02:00
Fix handling of editor.isSelectable
in Editor.positions
(#5929)
* Fix handling of `editor.isSelectable` in `Editor.positions` * Clean-up
This commit is contained in:
7
.changeset/eleven-clocks-begin.md
Normal file
7
.changeset/eleven-clocks-begin.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
- Fix error when a non-selectable node has no next or previous node
|
||||
- Do not return points from `Editor.positions` that are inside non-selectable nodes
|
||||
- Previously, `editor.isSelectable` was handled incorrectly inside `Editor.positions`. When encountering a non-selectable node, it would immediately return the point before or after it (depending on `reverse`), but it would not skip returning points inside the non-selectable node if more than one point was consumed from `Editor.positions`.
|
Reference in New Issue
Block a user