Add ability to use the browser back button to close sheets and dialogs (#17932)

This commit is contained in:
Josh Hawkins
2025-04-28 08:41:08 -06:00
committed by GitHub
parent aef715e8bb
commit d62790cd78
4 changed files with 196 additions and 57 deletions
@@ -187,7 +187,11 @@ export default function SearchDetailDialog({
const Description = isDesktop ? DialogDescription : MobilePageDescription;
return (
<Overlay open={isOpen} onOpenChange={handleOpenChange}>
<Overlay
open={isOpen}
onOpenChange={handleOpenChange}
enableHistoryBack={true}
>
<Content
className={cn(
"scrollbar-container overflow-y-auto",