mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
Export defaultScrollSelectionIntoView
(#5914)
This commit is contained in:
5
.changeset/fifty-shirts-tap.md
Normal file
5
.changeset/fifty-shirts-tap.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate-react': patch
|
||||
---
|
||||
|
||||
Export `defaultScrollSelectionIntoView`
|
@@ -1929,7 +1929,7 @@ export const defaultDecorate: (entry: NodeEntry) => DecoratedRange[] = () => []
|
||||
* A default implement to scroll dom range into view.
|
||||
*/
|
||||
|
||||
const defaultScrollSelectionIntoView = (
|
||||
export const defaultScrollSelectionIntoView = (
|
||||
editor: ReactEditor,
|
||||
domRange: DOMRange
|
||||
) => {
|
||||
|
@@ -6,6 +6,7 @@ export {
|
||||
RenderLeafProps,
|
||||
RenderPlaceholderProps,
|
||||
DefaultPlaceholder,
|
||||
defaultScrollSelectionIntoView,
|
||||
} from './components/editable'
|
||||
|
||||
export { DefaultElement } from './components/element'
|
||||
|
Reference in New Issue
Block a user