<input {...{type: 'checkbox', name, checked, readOnly: true, disabled: true}} />
Can someone tell me why my checkbox is not being disabled?
Any help is appreciated!
<input {...{type: 'checkbox', name, checked, readOnly: true, disabled: true}} />
Can someone tell me why my checkbox is not being disabled?
Any help is appreciated!
Found the issue: the onClick handler was one level above the input tag (parent div). If you do it like this it should work as expected:
<input {...{type: 'checkbox', name, checked, onClick: this.onChange, disabled: false}} />