From b9f98bbbdf8b4d3e5d3e57ed27b867e91d476734 Mon Sep 17 00:00:00 2001 From: iFlameing Date: Tue, 23 Apr 2024 20:49:25 +0530 Subject: [PATCH 1/2] Fix image disappears after pressing the Enter key on title field in image content-type. --- packages/volto/news/5973.bugfix | 1 + packages/volto/src/components/manage/Widgets/FileWidget.jsx | 1 + 2 files changed, 2 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/packages/volto/src/components/manage/Widgets/FileWidget.jsx b/packages/volto/src/components/manage/Widgets/FileWidget.jsx index 112ac04647..e21cde8c60 100644 --- a/packages/volto/src/components/manage/Widgets/FileWidget.jsx +++ b/packages/volto/src/components/manage/Widgets/FileWidget.jsx @@ -178,6 +178,7 @@ const FileWidget = (props) => { )} {value && (