Skip to content

Conversation

@MariaAga
Copy link
Contributor

What: Closes #8969
Before the fix, in fileupload examples, clicking on browse would open 2 file upload dialogs and after selecting a file the file name will not be shown.

onFileInputChange should also be called when a file is browsed and not only on drop, event is null on browse upload.
adding noClick as suggested in the react-dropzone docs:

If you bind a click event on an inner element and use open(), it will trigger a click on the root element too, resulting in the file dialog opening twice. To prevent this, use the noClick on the root

@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 21, 2023

@tlabaj tlabaj merged commit 3960bcc into patternfly:v5 Apr 26, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.0.0-alpha.79
  • @patternfly/react-core@5.0.0-alpha.78
  • @patternfly/react-docs@6.0.0-alpha.85
  • demo-app-ts@5.0.0-alpha.62
  • @patternfly/react-table@5.0.0-alpha.80

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Fileupload - in v5 is not working

5 participants