From 16a03c0c607b15ca392339ecbb72748700273c72 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 23 Oct 2020 22:55:31 +0100 Subject: [PATCH] Add note about onScroll in 17 --- content/docs/reference-events.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/docs/reference-events.md b/content/docs/reference-events.md index ad276819..f0e86988 100644 --- a/content/docs/reference-events.md +++ b/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