Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image disappears after pressing the Enter key on title field in i… #5975

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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