I'm trying to disable user selection on a input box which is disabled.
I have used pointer-events:none
css property to prevent selection on input box
It is working fine if I apply the css to an input box which is not disabled.
But for some reason it is not working to the input box which is disabled. Please take a look at the code below
<input type="text" disabled value="do not select" style="pointer-events: none;"/>
Tried user-select:none
even this didn't work.
Edit: Pointer-events:none is working fine in firefox, but it is not working in chrome.