Skip to content

Commit

Permalink
Fix dropdown menu clicking issue on labels group page
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Sep 18, 2024
1 parent db2d5da commit ba12569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export const DeleteLabelGroupDialog: React.FC<{
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
onClick={() => {
onClick={() =>
deleteLabelGroup
.mutateAsync(id)
.then(() => setOpen(false))
.then(() => router.refresh());
}}
.then(() => router.refresh())
}
>
Delete
</AlertDialogAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export const TargetGroupsTable: React.FC<{
</div>
</TableCell>
<TableCell>{labelGroup.targets}</TableCell>
<TableCell className="flex justify-end">
<TableCell
className="flex justify-end"
onClick={(e) => e.stopPropagation()}
>
<DropdownMenu
open={openDropdownId === labelGroup.targetLabelGroup.id}
onOpenChange={(open) => {
Expand Down

0 comments on commit ba12569

Please sign in to comment.