[Question] Is it possible to scroll element into view until it's visible and can be clicked?See original GitHub issue
I have a use case in which I have a side nav that is scrollable and there is a fixed overlay element (the black rectangle in the image) that can hide items that clickable in the side nav:
I’m trying in my test to click on the “Test 2” link but it’s hidden by the overlay and I don’t see a way to scroll it into view until it visible and can be clicked, I tried to use
scrollIntoViewIfNeeded that doesn’t work.
Is there an existing API that can help in this case to scroll to the element until it visible and can be clicked?
- Created 3 years ago
- Comments:5 (4 by maintainers)