AllenFang / AllenFang/react-bootstrap-table
input checkbox change status enable/disable
- Langage dominant
- JavaScript
- Étoiles
- 2.2k
- Forks
- 761
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.