You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Report: FileUpload Input Triggered on Any Mouse Click
Description
The FileUpload component's input is being triggered on any mouse click event, not just the left click. This behavior is unexpected and may lead to unintended file selections.
Steps to Reproduce
Go to https://primereact.org/fileupload/ right click on the first FileUpload (mode="basic") -> see it opens the file browser and closes the context menu directly
Expected Behavior
The expected behavior is that the FileUpload component's input should only be triggered on a left mouse click (e.g., a regular file selection behavior).
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Sep 24, 2023
Issue Report: FileUpload Input Triggered on Any Mouse Click
Description
The FileUpload component's input is being triggered on any mouse click event, not just the left click. This behavior is unexpected and may lead to unintended file selections.
Steps to Reproduce
Go to https://primereact.org/fileupload/ right click on the first FileUpload (mode="basic") -> see it opens the file browser and closes the context menu directly
Expected Behavior
The expected behavior is that the FileUpload component's input should only be triggered on a left mouse click (e.g., a regular file selection behavior).
Actual Behavior
Only the context menu should open
Reproducer
https://stackblitz.com/edit/stackblitz-starters-qhqcqg?file=src%2FApp.js
Environment Information
Code Snippet
The text was updated successfully, but these errors were encountered: