Skip to content

Commit 16a03c0

Browse files
authored
Add note about onScroll in 17
1 parent 4a62c0a commit 16a03c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/docs/reference-events.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ Event names:
354354
onScroll
355355
```
356356

357+
>Note
358+
>
359+
>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.
360+
357361
Properties:
358362

359363
```javascript

0 commit comments

Comments
 (0)