Skip to content

[Bug]: FileUploader disabled does not disable deleting selected files #17882

@mateotosic

Description

@mateotosic

Package

@carbon/react

Browser

Chrome

Package version

1.68.0

React version

16.14.0

Description

The component <FileUploader/> has a disabled control. When set to true, it makes the button for adding files disabled. However, the file containers representing already added files, along with their delete buttons, do not get disabled. The expected behaviour would be that the file name and the icon color be set to something like var(--cds-text-on-color-disabled).

Both the visual and the functional aspect of the component are broken in case we really need the component to be disabled. The only workaround I could think of involved very hacky style modifications.

Reproduction/example

https://react.carbondesignsystem.com/?path=/story/components-fileuploader--playground&args=disabled:!true

Steps to reproduce

Look at the Storyboard and switch the disabled control to 'true'.

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

DataGate

Code of Conduct

Metadata

Metadata

Type

No fields configured for Bug.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions