Skip to content

onClick won't fire when enter is pressed in IE10/11 #469

Open
@eriksson-daniel

Description

@eriksson-daniel

Summary:

Probably a duplicate of #384 and #261.

In IE10 and IE11 the onClick event won't fire when a button is pressed with the enter key. This works fine outside a modal.

Steps to reproduce:

<Modal isOpen>
  <button onClick={() => console.log("I won't fire in IE10/11 when enter is pressed")}>Button</button>
</Modal>

Link to example of issue:

https://codesandbox.io/s/DRxPjN2Mk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions