react-custom-scrollbars
react-custom-scrollbars copied to clipboard
IE11 + scrollIntoView() issue
On IE11 when using scrollIntoView for the item that is inside react-custom-scrollbars the hidden scrollbars are also made visible to the user.
Link to sandbox (open with IE11): https://codesandbox.io/s/lx4voxmn77
What it does: scrolls down to the active item.
What happens: Native scrollbars are made visible
Expected behavior: Native scrollbars should never appear
#304
After looking at #304, I fixed this issue on my project by setting the scrollTop and scrollLeft to 0 on my container right after calling the scrollIntoView.
elem.scrollIntoView() container.scrollTop = 0 container.scrollLeft = 0
What is "the container" @osasseville?
After looking at #304, I fixed this issue on my project by setting the scrollTop and scrollLeft to 0 on my container right after calling the scrollIntoView.
elem.scrollIntoView() container.scrollTop = 0 container.scrollLeft = 0
This fixed it for me
What is "the container" @osasseville?
The "Scrollbars" component itself