WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ef76eb4

Browse files
authored
Export defaultScrollSelectionIntoView (#5914)
1 parent 0265b7c commit ef76eb4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/fifty-shirts-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'slate-react': patch
3+
---
4+
5+
Export `defaultScrollSelectionIntoView`

packages/slate-react/src/components/editable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ export const defaultDecorate: (entry: NodeEntry) => DecoratedRange[] = () => []
19291929
* A default implement to scroll dom range into view.
19301930
*/
19311931

1932-
const defaultScrollSelectionIntoView = (
1932+
export const defaultScrollSelectionIntoView = (
19331933
editor: ReactEditor,
19341934
domRange: DOMRange
19351935
) => {

packages/slate-react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export {
66
RenderLeafProps,
77
RenderPlaceholderProps,
88
DefaultPlaceholder,
9+
defaultScrollSelectionIntoView,
910
} from './components/editable'
1011

1112
export { DefaultElement } from './components/element'

0 commit comments

Comments
 (0)