AllenFang / AllenFang/react-bootstrap-table
Enabling and disabling of the sorting functionality via remote doesn't work in our case
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 761
- PR merge metrics
- No merged PRs in 30d
Description
Hey there,
we are trying to disable the initial sorting when a new rendering is triggered. We are using the remote functionality and want to switch the remoteObj.sort value depending on a field in the state. Wether the value of remoteObj.sort is true or false the sorting won't work and is continuously disabled.
remote(remoteObj) {
remoteObj.pagination = false; -> work's just fine
remoteObj.filter = true; -> work's just fine
//remoteObj.sort = true; -> sorting is disabled
//remoteObj.sort = false; -> sorting is disabled
remoteObj.sort = this.state.noSorting; -> sorting is disabled
return remoteObj;
}
Best regards.
Contributor guide
Assessment
This issue has not been assessed yet.