patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - [FileUploadField] - cannot control individual disablement of browse button

Open christianvogt opened this issue 1 year ago • 0 comments

Describe the problem FileUploadField provides more control over the inner workings than FileUpload including a way to disable the clear button using isClearButtonDisabled. However there is no equivalent property for the browse button.

The use case we want to achieve is to present a "read only" state of the file upload. This is being used as part of a form generation preview. While we could disable the entirety of the component as a work around, it's not quite the same as creating a read only state where the control is still accessible.

How do you reproduce the problem? [Provide steps to reproduce. A codesandbox demonstrating the problem is appreciated.](https://www.patternfly.org/components/file-upload/simple-file-upload)

Expected behavior Provide property isBrowseButtonDisabled similar to isClearButtonDisabled.

Is this issue blocking you? List the workaround if there is one. We can use isDisabled for now.

What is your product and what release date are you targeting? RHOAI 2.13+

Any other information?

christianvogt avatar Aug 01 '24 17:08 christianvogt