Skip to content

Commit

Permalink
Decode positions as binary in getStoredPositionsInDeltaAbsolute
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonNiklasson authored May 18, 2022
1 parent 75588e2 commit bc90d51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-phones-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@slate-yjs/core': patch
---

Decode positions as binary in getStoredPositionsInDeltaAbsolute
2 changes: 1 addition & 1 deletion packages/core/src/utils/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function getStoredPositionsAbsolute(sharedRoot: Y.XmlText) {
[
key.slice(STORED_POSITION_PREFIX.length),
Y.createAbsolutePositionFromRelativePosition(
Y.createRelativePositionFromJSON(position),
Y.decodeRelativePosition(position),
sharedRoot.doc
),
] as const
Expand Down

0 comments on commit bc90d51

Please sign in to comment.