Skip to content

Conversation

@thatblindgeye
Copy link
Contributor

What: Closes #8883

Additional issues:

@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 25, 2023


// callback that will be called by the react dropzone with the newly dropped file objects
const handleFileDrop = (droppedFiles: File[]) => {
const handleFileDrop = (_event: DropEvent, droppedFiles: File[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a blocker for m since this is a limitation of the documentation framework. DropEvent is not documented so the consumer doe not know what that is. I also notice DropzonOptions is not documented either.
Maybe we can add descriptions of both here until the doc framework is updated.

@thatblindgeye thatblindgeye force-pushed the iss8883_multiFile_addEvent branch from 4a096dd to 760628f Compare May 2, 2023 15:59
@thatblindgeye thatblindgeye requested a review from tlabaj May 2, 2023 17:16
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM


## Types

Multiple file upload uses both the `DropEvent` and `DropzoneOptions` types from react-dropzone. The `DropEvent` type is a union comprised of the following types:
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good! Thanks for adding that.

@tlabaj tlabaj merged commit cf63e74 into patternfly:v5 May 3, 2023
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.

MultipleFileUpload: Add event param as first parameter of onFileDrop .

4 participants