you can't do this because pointer-events: none; disable all mouse functions, but you can do a trick and wrap your button with a div then use cursor: not-allowed; on this. Work great.
Answer: No cursor will be displayed.
you can't do this because pointer-events: none;
disable all mouse functions, but you can do a trick and wrap your button with a div
then use cursor: not-allowed;
on this.
.pointer-events-none {
pointer-events: none;
}
.wrapper {
cursor: not-allowed;
}
<div class="wrapper">
<button class="pointer-events-none">Some Text</button>
</div>
Add CSS cursor property when using "pointer-events: none"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With