I am encountering an issue with the SCSS code below:
input[type="checkbox"] {
...
&:read-only, &[readonly] {
cursor: default;
filter: grayscale(1);
}
}
This is being applied to
<input type="checkbox" id="checkbox" onChange={this.rememberMe} />
Despite following the guidelines on MDN: :read-only, which states:
it will select any element that cannot be edited by the user.
Why is this style being applied to my editable input?
This issue persists across both Firefox and Chrome browsers.