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 authored Apr 29, 2024
1 parent 466a358 commit 01cbe72
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
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const FileWidget = (props) => {
)}
{value && (
<Button
type="button"
icon
basic
className="delete-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,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 @@ -147,6 +148,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 01cbe72

Please sign in to comment.