Skip to content

Commit

Permalink
fix bug with search detail dialog not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Oct 16, 2024
1 parent 37e82f8 commit d3c386a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/src/components/overlay/detail/SearchDetailDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ export default function SearchDetailDialog({
const Description = isDesktop ? DialogDescription : MobilePageDescription;

return (
<Overlay open={isOpen} onOpenChange={() => setIsOpen(!isOpen)}>
<Overlay
open={isOpen}
onOpenChange={() => {
if (search) {
setSearch(undefined);
}
}}
>
<Content
className={cn(
"scrollbar-container overflow-y-auto",
Expand Down

0 comments on commit d3c386a

Please sign in to comment.