react-select
react-select copied to clipboard
Cannot change cursor when using unstyled
First of all, thanks for the library!
When using the unstyled option with classnames, it's not possible to change the mouse pointer due to specificity issues.
Code sandbox: https://codesandbox.io/s/react-select-v5-sandbox-forked-n63kht?file=/example.js
- I agree that part of the "proper" solution is to ensure that user-defined
className
s come last in the list - A very easy workaround is to increase your specificity. Either
div.cursor-not-allowed
or.cursor-not-allowed.cursor-not-allowed
would work in this case - You'll notice that even if you do 2., the problem isn't solved since the wrapper has
pointer-events: none
on it, nocursor
property on the element inside would ever work anyway.