Browse Source

Add note about onScroll in 17

main
Dan Abramov 4 years ago
committed by GitHub
parent
commit
16a03c0c60
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      content/docs/reference-events.md

4
content/docs/reference-events.md

@ -354,6 +354,10 @@ Event names:
onScroll
```
>Note
>
>Starting with React 17, the `onScroll` event **does not bubble** in React. This matches the browser behavior and prevents the confusion when a nested scrollable element fires events on a distant parent.
Properties:
```javascript

Loading…
Cancel
Save