我正在加载页面时检索记录,并根据其值检查复选框,如:
<div className="col-xs-12 col-sm-4 col-md-3 ">
<input type="checkbox" key={item.AttributeID} checked="checked" name={"Value" + item.AttributeID} className={classs} onClick={() => that.selectCheckBox(value) } />
<label>{item.AttributeName}</label>
</div>
选中该复选框并且工作正常,现在在用户界面上我无法取消选中该复选框:
if(item.IsChecked == true){subControlAttributesRows.push(that.selectCheckBox(value)} /&gt; {item.AttributeName}); }