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

[Feature Request]: Add a disabled property to the FileUpload #1831

Open
2 tasks done
IgniparousTempest opened this issue Dec 22, 2023 · 4 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@IgniparousTempest
Copy link

Description

The file upload component is inconsistent with all other form components. All the others have a disabled property, this one does not. It would be useful to be able to disable it conditionally as follows:

<FileUpload
    disabled={disabled}
    ...
/>

Code of Conduct

@IgniparousTempest IgniparousTempest added the enhancement New feature or request label Dec 22, 2023
@connorlanigan
Copy link
Member

Hi, thank you for reaching out. Can you provide some more details about your use case for this property, i.e. in which situation do you want to disable the component? This will help us better understand the request.

@just-boris
Copy link
Member

Closing due to inactivity. Feel free to share more info about your use-cases, we will reopen this

@just-boris just-boris closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
@ericxinzhang
Copy link

I am looking for the same feature. My use case is simple: a form with a couple of form fields and <FileUpload /> component. When the form is being submitted I'd like to disable <FileUpload /> so that user cannot click on it and choose another file. I hope it makes sense.

@IgniparousTempest
Copy link
Author

The above is exactly my use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants