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

[Bug]: multiple prop not enforced during drag-and-drop upload #18668

Open
2 tasks done
adamalston opened this issue Feb 21, 2025 · 0 comments · May be fixed by #18669
Open
2 tasks done

[Bug]: multiple prop not enforced during drag-and-drop upload #18668

adamalston opened this issue Feb 21, 2025 · 0 comments · May be fixed by #18669
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. status: needs triage 🕵️‍♀️ type: bug 🐛

Comments

@adamalston
Copy link
Contributor

Package

@carbon/react

Browser

No response

Package version

1.76.0

React version

No response

Description

When dragging and dropping multiple files into the FileUploaderDropContainer component, all files are added to addedFiles, even if the multiple prop is set to false.

I read through #5728 and I don't think that this issue is a duplicate.

Reproduction/example

https://stackblitz.com/edit/github-m1gvbbfd?file=src%2FApp.tsx

Steps to reproduce

  1. Click the button in the reproduction link.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

DataPower

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. status: needs triage 🕵️‍♀️ type: bug 🐛
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant