mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-17 13:38:37 +01:00
Fix docs typo for unref (#5448)
This commit is contained in:
parent
eb7f598707
commit
25e5eee4af
@ -18,7 +18,7 @@ const selectionRef = Editor.rangeRef(editor, editor.selection, {
|
||||
})
|
||||
// Allow the user to do stuff which might change the selection
|
||||
Transforms.unwrapNodes(editor)
|
||||
Transforms.select(editor, selectionRef.unRef())
|
||||
Transforms.select(editor, selectionRef.unref())
|
||||
```
|
||||
|
||||
- [Instance methods](range-ref.md#instance-methods)
|
||||
@ -27,7 +27,7 @@ Transforms.select(editor, selectionRef.unRef())
|
||||
|
||||
## Instance methods
|
||||
|
||||
#### `unRef() => Range`
|
||||
#### `unref() => Range`
|
||||
|
||||
Call this when you no longer need to sync this range.
|
||||
It also returns the current value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user