fix: Double window opening on image selection #1351

Closed
opened 2026-04-05 16:27:02 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @junedkhatri31 on 12/4/2023

Fix double window opening on image selection

This issue occurs due to a bug in useDropzone - https://github.com/react-dropzone/react-dropzone/issues/1107.

In the documentation for useDropzone, it is mentioned that {noClick: true} should be used if label is root element - https://react-dropzone.js.org/#:~:text=Using%20%3Clabel%3E%20as%20Root.

Pull Request Checklist:

  • Please make sure all jobs pass before requesting a review.
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
  • Have you lint your code locally before submission?
  • Did you write tests where appropriate?

closes #956

Screenshots (if appropriate):

*Originally created by @junedkhatri31 on 12/4/2023* ### Fix double window opening on image selection This issue occurs due to a bug in useDropzone - https://github.com/react-dropzone/react-dropzone/issues/1107. In the documentation for useDropzone, it is mentioned that `{noClick: true}` should be used if `label` is root element - https://react-dropzone.js.org/#:~:text=Using%20%3Clabel%3E%20as%20Root. ### Pull Request Checklist: - [ ] Please make sure all jobs pass before requesting a review. - [x] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). - [x] Have you lint your code locally before submission? - [ ] Did you write tests where appropriate? ### Related Issue? closes #956 ### Screenshots (if appropriate):
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1351