-
Notifications
You must be signed in to change notification settings - Fork 46.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Strange onScroll behaviour when child editing #19156
Comments
I haven't worked on React yet, I am still looking, but I did some digging. It seems like this is the intended behavior of React: #5622. I'd wait for someone else to verify. |
I have worked on React, but I think its a bug because "onScroll" should happen when we scroll. |
The input element fires a scroll event. I don't think this is a bug. |
Yes, but as I see in Vanilla JS code it does not fire a scroll event, and at this React "feature" it fires an event :) |
It's weird that one of my machine still run on older version of chromium(80.0.3987.163) and scroll event doesn't fire on react component. But another machine with latest chromium(83.0.4103.61) fires the event. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
React 17 doesn't bubble scroll events so this would be fixed. |
React version: 16.13.1
OS: Mac OS
Browser: Chrome 83.0.4103.97
Steps To Reproduce
The current behavior
Event onScroll is fired on the parent.
The expected behavior
Scroll event should not fire.
Link to code example:
https://codepen.io/vladislav-andreevich/pen/zYroQjN
The text was updated successfully, but these errors were encountered: