Unable to click link inside draggable container in Next.js using Tailwind CSS
asked 123 days ago
0
7
Question:
I'm working on a Next.js project where I have a draggable container, and inside it, I have a clickable link. However, when I try to click the link, it doesn't register as a click. It seems that the draggable container is blocking the link, preventing any interaction.
Here’s the relevant part of my code:
What I've Tried:
- I’ve applied
pointer-events-none
to the draggable container, which I thought would allow the link to be clickable. - I also added
pointer-events-auto
to the link container, but it still doesn't work.
Question:
Why is the link not clickable even after applying pointer-events-none
and pointer-events-auto
? How can I fix this so the link inside the draggable container is clickable?
What I Expect:
I want the link inside the draggable container to remain clickable even when the container is being dragged.
0 Answers


No Answers Found
The answer board is empty. Make it rain with your brilliant answer.
1