AllenFang / AllenFang/react-bootstrap-table
input checkbox change status enable/disable
- 主要语言
- JavaScript
- 星标
- 2.2k
- 派生
- 761
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
I have a checkbox for each row.
I use the "dataFormat" to call my listener function (onChange)
All is ok! But when I select to true the checkbox and I click on my save button.
After the "save I need to disable my input.
But the value has not been changed so the input is still "enable"
Case step:
1. Click on checkbox to become "true"
2. Leave enable the checkbox
3. Click on the "save" button
4. Call back from server
5. Function "dataFormat" is called well and the input is define with "disable"
6. Checkbox is still "enable"
workaround
Set the state to null to force the entire table to refresh
Do you have another solution to avoid setState to null?
Thanks
贡献指南
评估
这个 Issue 还没有评估数据。