mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-22 14:21:54 +02:00
docs: Add details about the scrollSelectionIntoView prop for the Editable component
This commit is contained in:
parent
ce5428b143
commit
832e75f47a
@ -26,3 +26,7 @@ type EditableProps = {
|
||||
```
|
||||
|
||||
_NOTE: Detailed breakdown of Props not completed. Refer to the source code at the moment. Under construction._
|
||||
|
||||
#### `scrollSelectionIntoView?: (editor: ReactEditor, domRange: DOMRange) => void`
|
||||
|
||||
Slate has its own default method to scroll a DOM selection into view that works for most cases; however, if the default behavior isn't working for you, possible due to some complex styling, you may need to override the default behavior by providing a different function here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user