Skip to content

IE11 block change events if disabled #4457

@brigand

Description

@brigand

Repro: https://jsbin.com/gebasa/3/edit?js,output

Given:

<input 
  disabled={true}
  type="checkbox"
  checked={trueOrFalse} 
  onChange={alert} 
  />

On at least IE11 a double click on checkbox causes onChange to be called. If it's just adding an if statement, normalizing this would be nice. It may also affect other elements/events like <button disabled onClick={f}>, misc screen readers, etc.

Workaround: duplicate the disabled boolean logic in the handler.

The report was from sim1234 on IRC and verified by phi0x.

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