From 6303bf4d518c5606f1f6cc8d44e05c000e596139 Mon Sep 17 00:00:00 2001 From: Alok Kumar Date: Fri, 3 May 2024 19:32:45 +0530 Subject: [PATCH] =?UTF-8?q?[16.x.x]=20Backport=20Fix=20image=20disappears?= =?UTF-8?q?=20after=20pressing=20the=20Enter=20key=20on=20title=20field=20?= =?UTF-8?q?in=20i=E2=80=A6=20(#6000)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/volto/news/5973.bugfix | 1 + src/components/manage/Widgets/FileWidget.jsx | 1 + .../manage/Widgets/__snapshots__/FileWidget.test.jsx.snap | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 packages/volto/news/5973.bugfix diff --git a/packages/volto/news/5973.bugfix b/packages/volto/news/5973.bugfix new file mode 100644 index 0000000000..5326b7aa74 --- /dev/null +++ b/packages/volto/news/5973.bugfix @@ -0,0 +1 @@ +Fix image disappears after pressing the Enter key on title field in image content-type. @iFlameing \ No newline at end of file diff --git a/src/components/manage/Widgets/FileWidget.jsx b/src/components/manage/Widgets/FileWidget.jsx index 34db736933..68f1deec81 100644 --- a/src/components/manage/Widgets/FileWidget.jsx +++ b/src/components/manage/Widgets/FileWidget.jsx @@ -173,6 +173,7 @@ const FileWidget = (props) => { {value && value.filename} {value && (