Skip to content

Commit 7086794

Browse files
committed
Close the confirm dialog
1 parent 80052c0 commit 7086794

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ra-ui-materialui/src/button/UpdateWithConfirmButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const UpdateWithConfirmButton = <
6464
};
6565

6666
const handleConfirm = e => {
67+
setOpen(false);
6768
handleUpdate(data);
6869

6970
if (typeof onClick === 'function') {
@@ -147,6 +148,7 @@ export const UpdateWithConfirmButton = <
147148

148149
const sanitizeRestProps = ({
149150
label,
151+
mutationOptions,
150152
...rest
151153
}: Omit<
152154
UpdateWithConfirmButtonProps,

0 commit comments

Comments
 (0)