Open ugrinovsky opened 3 years ago
What do you mean exactly by "the scrolling logic will break" here?
For me, it scrolls the <html />
tag instead of my scrolling div.
Similar thread in the scroll-into-view-if-needed
repo: https://github.com/stipsan/scroll-into-view-if-needed/issues/635
Problem At the moment, the editor itself should be a scroll container. But if the scroll container needs to be above the editor, the scrolling logic will break.
Solution I suggest adding an prop for the editor: https://github.com/ianstormtaylor/slate/blob/d06706c9e15bbbdd7cdd9a1bbb38c87d37c85ea1/packages/slate-react/src/components/android/android-editable.tsx#L170 https://github.com/ianstormtaylor/slate/blob/7ba486aa397411a3e83ab636b0982167d95319c0/packages/slate-react/src/components/editable.tsx#L1305
slate-react:
custom code: