Open
Description
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:
- Open modal
- Click on
Open file dialog
button - Inspect console to see result
- Clicking on
Open file dialog
button on the page will only trigger the handler once
Expected behavior:
onClick is called only once.