You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Dialog triggered by an item in a DropdownMenu. This is rendered in a TanStack table as part of an "actions" column. The Dialog and menu open correctly, but when the Dialog is closed, the entire application becomes unresponsive and nothing is able to be clicked or hovered anymore. In other words, it seems like the modal non-interactivity remains even after closing.
This same code works in other parts of my codebase but only seems to break when using this in a TanStack table column. Has anyone ran into this issue before or have any ideas?
functionDropdown({children}){const[dialogOpen,setDialogOpen]=useState(false);const[menuOpen,setMenuOpen]=useState(false);return(<Dialogopen={dialogOpen}onOpenChange={setDialogOpen}><DropdownMenuopen={menuOpen}onOpenChange={setMenuOpen}><DropdownMenuTriggerasChild>{children}</DropdownMenuTrigger><DropdownMenuContent><DialogTriggerasChild><DropdownMenuItem>Edit</DropdownMenuItem></DialogTrigger></DropdownMenuContent></DropdownMenu><DialogContent><DialogHeader><DialogTitle>This is the title</DialogTitle></DialogHeader></DialogContent></Dialog>);}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
Dialog
triggered by an item in aDropdownMenu
. This is rendered in a TanStack table as part of an "actions" column. TheDialog
and menu open correctly, but when theDialog
is closed, the entire application becomes unresponsive and nothing is able to be clicked or hovered anymore. In other words, it seems like the modal non-interactivity remains even after closing.This same code works in other parts of my codebase but only seems to break when using this in a TanStack table column. Has anyone ran into this issue before or have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions