-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect calculation in
indexTree.treePosToPath
operation (#751)
`TreeChange.Path` is calculated as one offset based on contents even if the elements have several text nodes. This commit ensures that elements with text nodes return the position of the content rather than the offset of children. --------- Co-authored-by: Youngteac Hong <[email protected]>
- Loading branch information
1 parent
16bbe87
commit 5c8e56f
Showing
2 changed files
with
161 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters