fix(models): fix delete button - use onClick instead of onSelect to allow menu close before dialog opens
Docker Build / Build and Push Docker Image (push) Successful in 3m42s

This commit is contained in:
2026-06-18 23:02:42 +08:00
parent 41540dbd43
commit f28672c4e6
@@ -63,7 +63,7 @@ export function DataTableRowActions({ row }: DataTableRowActionsProps) {
return (
<>
<DropdownMenu modal={false}>
<DropdownMenu>
<DropdownMenuTrigger
render={
<Button
@@ -109,10 +109,7 @@ export function DataTableRowActions({ row }: DataTableRowActionsProps) {
{/* Delete */}
<DropdownMenuItem
onSelect={(e) => {
e.preventDefault()
setDeleteConfirmOpen(true)
}}
onClick={() => setDeleteConfirmOpen(true)}
className='text-destructive focus:text-destructive'
>
{t('Delete')}