Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems about pointer-events : none #3298

Open
phu130201 opened this issue Dec 19, 2024 · 4 comments
Open

Problems about pointer-events : none #3298

phu130201 opened this issue Dec 19, 2024 · 4 comments

Comments

@phu130201
Copy link

phu130201 commented Dec 19, 2024

(https://stackoverflow.com/questions/79295806/pointerevent-none-happened-when-close-modal-in-nextjs15)
I have this issues and I can not fix it.

@MaciejGarncarski
Copy link

Hi, I've had the same problem, and I fixed it by updating @radix-ui/react-dialog, @radix-ui/react-popover and @radix-ui/react-alert-dialog to version 1.1.4

@phu130201
Copy link
Author

phu130201 commented Dec 20, 2024

Hi, I've had the same problem, and I fixed it by updating @radix-ui/react-dialog, @radix-ui/react-popover and @radix-ui/react-alert-dialog to version 1.1.4

image

I already changed the react-dialog to version 1.1.4 but still errors.

@Skayfa
Copy link

Skayfa commented Dec 23, 2024

I have the same issue :/

@Lexachoc
Copy link

To avoid this, the following anatomy should fix this issue:

<DropdownMenu>
    <DropdownMenuTrigger>
    </DropdownMenuTrigger>
    <DropdownMenuContent>
        <DropdownMenuLabel>
        </DropdownMenuLabel>
        <DropdownMenuSeparator/>
        <DropdownMenuGroup>
            <Dialog>
                <DialogTrigger asChild>
                    <DropdownMenuItem>
                    </DropdownMenuItem>
                </DialogTrigger>
                <DialogContent>
                    <DialogHeader>
                        <DialogTitle>
                        </DialogTitle>
                    </DialogHeader>
                </DialogContent>
            </Dialog>
        </DropdownMenuGroup>
    </DropdownMenuContent>
</DropdownMenu>

And close the Dialog and then close the DropdownMenu.

The key point here is to wrap the Dialog inside the DropdownMenu and use DropdownMenuItem as the DialogTrigger

I use the above anatomy without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants