1
0
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:
Sunny Hirai 2023-04-17 14:46:17 -07:00
parent ce5428b143
commit 832e75f47a

View File

@ -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.