You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Block/Image should behave the same way in both up and down directions.
Further notes
I've taken a look at the code and the issue seems to be that the element passed into the scrollIntoView mechanism is a placeholder below the element, and not the element itself. The scroll never happens as the placeholder is "in view" the entire time.
The text was updated successfully, but these errors were encountered:
I would be happy to submit a patch but would I would need guidance where to start. This is being done every keypress so it seems vital that detecting if the scroll-target is within a block and using the block the scroll target is done in the fastest way possible.
Do you want to request a feature or report a bug?
Bug.
What's the current behavior?
Clicking a partially hidden "block" element scrolls it into view if it at the bottom of the viewport, but not if it is at the top of the viewport.
The issue is demonstrable with the https://www.slatejs.org/examples/images example if extra text is added to create a scrolling document.
Slate: 0.57.1
Browser: Chrome
OS: Mac
What's the expected behavior?
Block/Image should behave the same way in both up and down directions.
Further notes
I've taken a look at the code and the issue seems to be that the element passed into the scrollIntoView mechanism is a placeholder below the element, and not the element itself. The scroll never happens as the placeholder is "in view" the entire time.
The text was updated successfully, but these errors were encountered: