1
0
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:
Joe Anderson
2025-07-11 00:30:46 +01:00
committed by GitHub
parent 0265b7cbcc
commit ef76eb46e0
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'slate-react': patch
---
Export `defaultScrollSelectionIntoView`

View File

@@ -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
) => {

View File

@@ -6,6 +6,7 @@ export {
RenderLeafProps,
RenderPlaceholderProps,
DefaultPlaceholder,
defaultScrollSelectionIntoView,
} from './components/editable'
export { DefaultElement } from './components/element'