AllenFang / AllenFang/react-bootstrap-table

input checkbox change status enable/disable

Open
#649 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.