mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +02:00
@@ -176,7 +176,10 @@ export const Editable = (props: EditableProps) => {
|
||||
if (newDomRange) {
|
||||
domSelection.addRange(newDomRange!)
|
||||
const leafEl = newDomRange.startContainer.parentElement!
|
||||
scrollIntoView(leafEl, { scrollMode: 'if-needed' })
|
||||
scrollIntoView(leafEl, {
|
||||
scrollMode: 'if-needed',
|
||||
boundary: el,
|
||||
})
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
|
Reference in New Issue
Block a user