1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-25 00:06:30 +02:00

Fix scroll into view to scroll parent scrollables (#4369)

This commit is contained in:
Sunny Hirai
2021-07-09 15:12:13 -07:00
committed by GitHub
parent 46c8871c9c
commit c217dbb5b9
3 changed files with 75 additions and 1 deletions

View File

@@ -216,7 +216,6 @@ export const Editable = (props: EditableProps) => {
)
scrollIntoView(leafEl, {
scrollMode: 'if-needed',
boundary: el,
})
// @ts-ignore
delete leafEl.getBoundingClientRect