Skip to content

feat(FileUpload): added event params to callbacks#8960

Merged
nicolethoen merged 1 commit intopatternfly:v5from
wise-king-sullyman:FileUpload-add-event-params
Apr 27, 2023
Merged

feat(FileUpload): added event params to callbacks#8960
nicolethoen merged 1 commit intopatternfly:v5from
wise-king-sullyman:FileUpload-add-event-params

Conversation

@wise-king-sullyman
Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman commented Apr 14, 2023

What: Closes #8881

Additional issues:

The onTextChange cb was already updated as part of #8955

@patternfly-build
Copy link
Collaborator

patternfly-build commented Apr 14, 2023

@nicolethoen
Copy link
Contributor

On the v5 branch (patternfly-react-v5.surge.sh) for this component opens the upload dialog twice before it successfully uploads the file and displays it in the file-details textarea.
However, in this PR, I cannot ever get the text file contents to display in the textarea no matter how many times the file upload dialog opens. So this seems like the updates are now exacerbating the problem?

@nicolethoen nicolethoen self-requested a review April 19, 2023 02:22
@wise-king-sullyman wise-king-sullyman force-pushed the FileUpload-add-event-params branch from f0903f9 to a913531 Compare April 26, 2023 18:06
@wise-king-sullyman
Copy link
Collaborator Author

@nicolethoen rebased after merging the FileUpload fix, I think it's good now?

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples are working fine for me now

@nicolethoen nicolethoen merged commit 10f0316 into patternfly:v5 Apr 27, 2023
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • @patternfly/react-code-editor@5.0.0-alpha.82
  • @patternfly/react-core@5.0.0-alpha.81
  • @patternfly/react-docs@6.0.0-alpha.88
  • demo-app-ts@5.0.0-alpha.65
  • @patternfly/react-integration@5.0.0-alpha.32
  • @patternfly/react-table@5.0.0-alpha.83

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.

FileUpload: add event param to onDataChange, onReadFailed, onReadFinished, onReadStarted and onTextChange callbacks. It should be first parameter.

4 participants