Skip to content

Strange onScroll behaviour #15723

Closed
Closed
@O4epegb

Description

@O4epegb

Do you want to request a feature or report a bug?

Possible bug

What is the current behavior?

onScroll callback on parent element fires when children element is scrolled.
Native listener is working as expected, though.

Example with reproduction
https://codesandbox.io/s/kk3th

Just try to scroll little box with items.

What is the expected behavior?

I am not sure if this behaviour is correct, but it was unexpected for me, so it might be a bug.
I was not expecting onScroll to fire at all.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

"react": "16.8.6"
macOs Mojave 10.14.5

Did not tried any other versions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close