Skip to content

Do we need to listen for click on change events? #11971

@nhunzaker

Description

@nhunzaker

Presently, we listen to click events to detect changes on radio buttons and checkboxes. Do we still need to do this?

https://github.com/facebook/react/blob/master/packages/react-dom/src/events/ChangeEventPlugin.js#L198-L211

It looks as though we only do this for IE8. I'm curious about:

  • Can we remove the click dependency from change events?
  • If not, we should update the comments to better document why we include click events

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