diff --git a/CHANGELOG.md b/CHANGELOG.md index 0150fcadd80..105d8624141 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ **Bug fixes** - Fixed `EuiInMemoryTable`'s `onTableChange` callback not returning the correct `sort.field` value on pagination ([#5588](https://github.com/elastic/eui/pull/5588)) +- Fixed `EuiFilePicker` allowing files to be removed when `disabled` ([#5603](https://github.com/elastic/eui/pull/5603)) ## [`46.2.0`](https://github.com/elastic/eui/tree/v46.2.0) diff --git a/src/components/form/file_picker/file_picker.tsx b/src/components/form/file_picker/file_picker.tsx index 8f8452cde6c..6fe56f6f16c 100644 --- a/src/components/form/file_picker/file_picker.tsx +++ b/src/components/form/file_picker/file_picker.tsx @@ -175,7 +175,7 @@ export class EuiFilePicker extends Component { clearButton = ( ); - } else if (isOverridingInitialPrompt) { + } else if (isOverridingInitialPrompt && !disabled) { if (normalFormControl) { clearButton = (