【发布时间】:2019-04-19 15:48:16
【问题描述】:
<input {...{type: 'checkbox', name, checked, readOnly: true, disabled: true}} />
谁能告诉我为什么我的复选框没有被禁用?
感谢任何帮助!
【问题讨论】:
-
检查 devtools 说什么可能是有意义的
-
我在 devtools 上没有看到任何错误或警告
-
使用 React.createElement('input',{type: 'checkbox', defaultChecked: false});多数民众赞成在工作正常。还有stackoverflow.com/questions/32174317/…
标签: javascript html reactjs react-bootstrap