Skip to content

file input ref triggering multiple times #494

Open
@httpete-ire

Description

@httpete-ire

Summary:

When a ref is set on a file input within a modal, triggering the click on the ref from another handler causes the original handler to get called several times (3 in most cases).

Steps to reproduce:

In example below:

  1. Open modal
  2. Click on Open file dialog button
  3. Inspect console to see result
  4. Clicking on Open file dialog button on the page will only trigger the handler once

Expected behavior:

onClick is called only once.

Link to example of issue:

example with issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions