You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am setting a default sorting for my column this way: <BootstrapTable data={dataSet} striped={true} hover={true} condensed={true} options={sortName: "dispName", sortOrder: Const.SORT_DESC}>
Then, first time I click on the column header of dispName, then the sorting is not changed to ascending but rather is still in descending order. I need to click again in order to get the table sorted ascendingly.
This is due to the fact that TableHeaderColumn uses a local variable (this.order) that is undefined at the beginning and only after the first click it is updated with the current sort order. Instead it should already be aware of the default sorting order.
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I am setting a default sorting for my column this way:
<BootstrapTable data={dataSet} striped={true} hover={true} condensed={true} options={sortName: "dispName", sortOrder: Const.SORT_DESC}>
Then, first time I click on the column header of dispName, then the sorting is not changed to ascending but rather is still in descending order. I need to click again in order to get the table sorted ascendingly.
This is due to the fact that TableHeaderColumn uses a local variable (this.order) that is undefined at the beginning and only after the first click it is updated with the current sort order. Instead it should already be aware of the default sorting order.
Thanks
The text was updated successfully, but these errors were encountered: