Skip to content

Commit

Permalink
Fix image disappears after pressing the Enter key on title field in i… (
Browse files Browse the repository at this point in the history
  • Loading branch information
iFlameing committed May 3, 2024
1 parent bc19806 commit d7b091a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/5973.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix image disappears after pressing the Enter key on title field in image content-type. @iFlameing
1 change: 1 addition & 0 deletions src/components/manage/Widgets/FileWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const FileWidget = (props) => {
{value && value.filename}
{value && (
<Button
type="button"
icon
basic
className="delete-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ exports[`FileWidget renders a file widget component with value 1`] = `
<button
aria-label="delete file"
class="ui basic icon button delete-button"
type="button"
>
<svg
class="icon"
Expand Down Expand Up @@ -134,6 +135,7 @@ exports[`FileWidget renders a file widget component with value in raw data 1`] =
<button
aria-label="delete file"
class="ui basic icon button delete-button"
type="button"
>
<svg
class="icon"
Expand Down

0 comments on commit d7b091a

Please sign in to comment.