1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 03:32:36 +02:00

Fix docs typo for unref

This commit is contained in:
Dylan Schiemann
2023-06-12 15:25:13 -07:00
committed by GitHub
parent eb7f598707
commit c5caca7319

View File

@@ -18,7 +18,7 @@ const selectionRef = Editor.rangeRef(editor, editor.selection, {
}) })
// Allow the user to do stuff which might change the selection // Allow the user to do stuff which might change the selection
Transforms.unwrapNodes(editor) Transforms.unwrapNodes(editor)
Transforms.select(editor, selectionRef.unRef()) Transforms.select(editor, selectionRef.unref())
``` ```
- [Instance methods](range-ref.md#instance-methods) - [Instance methods](range-ref.md#instance-methods)
@@ -27,7 +27,7 @@ Transforms.select(editor, selectionRef.unRef())
## Instance methods ## Instance methods
#### `unRef() => Range` #### `unref() => Range`
Call this when you no longer need to sync this range. Call this when you no longer need to sync this range.
It also returns the current value. It also returns the current value.