Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileUploader: Converts event.files into SyntheticBaseEvent when in advanced mode #2836

Closed
cmccoy98 opened this issue May 3, 2022 · 1 comment · Fixed by #2795
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@cmccoy98
Copy link

cmccoy98 commented May 3, 2022

Describe the bug

When using FileUploader in advanced mode the files array is converted into a SyntheticBaseEvent. This behavior only effected advanced mode. Basic mode is fine.

Reproducer

https://codesandbox.io/s/jolly-chaum-5f6eef?file=/src/demo/FileUploadDemo.js

PrimeReact version

8.0.0+

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

Chome

Steps to reproduce the behavior

  1. Choose file
  2. Click upload
  3. Get error

Expected behavior

Should return files array and not SyntheticBaseEvent.

@cmccoy98 cmccoy98 added the Type: Bug Issue contains a defect related to a specific component. label May 3, 2022
@cmccoy98 cmccoy98 changed the title FileUploader converts event.files into SyntheticBaseEvent when in advanced mode FileUploader: Converts event.files into SyntheticBaseEvent when in advanced mode May 3, 2022
@melloware melloware linked a pull request May 3, 2022 that will close this issue
@melloware melloware self-assigned this May 3, 2022
@melloware melloware added this to the 8.1.0 milestone May 3, 2022
@melloware
Copy link
Member

Already fixed for 8.1.0 with PR: #2795

@mertsincan mertsincan modified the milestones: 8.1.0, 8.1 May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants