From 36bf8c6ff538a2002fdbdf6c5acf3ecc14f82ffe Mon Sep 17 00:00:00 2001 From: Danny Moerkerke Date: Wed, 6 Mar 2024 15:21:09 +0100 Subject: [PATCH] fix: uncommented a previously commented line since this is probably a mistake and breaks functionality * fix: lion-selected-filelist, restored composed: true and bubbles: true for 'file-remove-requested' event, otherwise removing files for subclassers won't work * fix: uncommented a previously commented line since this is probably a mistake and breaks functionality * Update packages/ui/components/input-file/src/LionInputFile.js Co-authored-by: Thijs Louisse --- .changeset/thick-cooks-jump.md | 5 +++++ packages/ui/components/input-file/src/LionInputFile.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-cooks-jump.md diff --git a/.changeset/thick-cooks-jump.md b/.changeset/thick-cooks-jump.md new file mode 100644 index 000000000..0e3566fa9 --- /dev/null +++ b/.changeset/thick-cooks-jump.md @@ -0,0 +1,5 @@ +--- +'@lion/ui': patch +--- + +Uncommented a previously commented line since this is probably a mistake and breaks functionality diff --git a/packages/ui/components/input-file/src/LionInputFile.js b/packages/ui/components/input-file/src/LionInputFile.js index e54cb7703..f00fe28f6 100644 --- a/packages/ui/components/input-file/src/LionInputFile.js +++ b/packages/ui/components/input-file/src/LionInputFile.js @@ -433,7 +433,8 @@ export class LionInputFile extends ScopedElementsMixin(LocalizeMixin(LionField)) ]; } }); - // this._selectedFilesMetaData = [...this._selectedFilesMetaData]; + // TODO: add a unit test for this + this._selectedFilesMetaData = [...this._selectedFilesMetaData]; } }); }