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
I would like a way to disallow a user to scroll the content.
We have a tree component (using react-vtree) that allows editing tree nodes. We plan to prompt a user to save or reject their changes when they start scrolling the tree (because there are too many UX gotchas otherwise). However I see no way to do this and I can't use the native onScroll props on the react-window elements.
For now I'm using the outerRef and cancelling the mouse wheel events, but it would be ideal if there was a way to preventDefault on the custom onScroll
The text was updated successfully, but these errors were encountered:
I would like a way to disallow a user to scroll the content.
We have a tree component (using react-vtree) that allows editing tree nodes. We plan to prompt a user to save or reject their changes when they start scrolling the tree (because there are too many UX gotchas otherwise). However I see no way to do this and I can't use the native
onScroll
props on the react-window elements.For now I'm using the outerRef and cancelling the mouse wheel events, but it would be ideal if there was a way to preventDefault on the custom onScroll
The text was updated successfully, but these errors were encountered: