AllenFang / AllenFang/react-bootstrap-table

input checkbox change status enable/disable

Đang mở
#649 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.