Error: DialogPortal
must be used within Dialog
#135596
Replies: 1 comment 2 replies
-
Is it ShadCn dialog??m if it is example <Dialog>
<DialogTrigger asChild>
<Button variant="outline">Trigger dialog</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>Some Title</DialogTitle>
<DialogDescription>
Some Des
</DialogDescription>
</DialogHeader>
<div>
your content
</div>
<DialogFooter>
<Button type="submit">Save changes</Button>
</DialogFooter>
</DialogContent>
</Dialog> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a barbershop website using Next.JS, NextAuth and other tools. The problem is when I was making the Header component, this error appears. I'm new to projects that use NextJs, if anyone could help I would be very grateful.
Repo: https://github.com/devpedro-dias/devbarber
Error image:
Beta Was this translation helpful? Give feedback.
All reactions