Skip to content

Commit

Permalink
Fix focus not set in deletion confirmation dialog (#6270)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouh authored Jan 25, 2024
1 parent d019571 commit 10314a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newIDE/app/src/ObjectEditor/Editors/SpriteEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default function SpriteEditor({
},
[justAddedAnimationName]
);
const { showConfirmation } = useAlertDialog();
const { showDeleteConfirmation } = useAlertDialog();

const draggedAnimationIndex = React.useRef<number | null>(null);

Expand Down Expand Up @@ -377,7 +377,7 @@ export default function SpriteEditor({
const message = shouldWarnBecauseLosingCustomCollisionMask
? t`Are you sure you want to remove this animation? You will lose the custom collision mask you have set for this object.`
: t`Are you sure you want to remove this animation?`;
const deleteAnswer = await showConfirmation({
const deleteAnswer = await showDeleteConfirmation({
title: t`Remove the animation`,
message,
confirmButtonLabel: t`Remove`,
Expand Down Expand Up @@ -409,7 +409,7 @@ export default function SpriteEditor({
forceUpdate,
onObjectUpdated,
onSizeUpdated,
showConfirmation,
showDeleteConfirmation,
spriteConfiguration,
onCreateMatchingSpriteCollisionMask,
]
Expand Down

0 comments on commit 10314a1

Please sign in to comment.