fix(cloudflare): deduplicate batch member ids and guard move dialog dismiss during pending

This commit is contained in:
ryan
2026-09-26 15:39:10 +08:00
parent 2b3be6f3a3
commit c3606bc6f6
2 changed files with 36 additions and 4 deletions
@@ -70,8 +70,22 @@ export function MemberMoveDialog({
: t('moveDialog.targetGroupLabel');
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent>
<Dialog
open={open}
onOpenChange={(next) => {
if (!pending) {
onOpenChange(next);
}
}}
>
<DialogContent
onPointerDownOutside={(e) => {
if (pending) e.preventDefault();
}}
onEscapeKeyDown={(e) => {
if (pending) e.preventDefault();
}}
>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>
<DialogDescription className='line-clamp-2'>