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
Docker Build / Build and Push Docker Image (push) Successful in 3m42s
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user