AllenFang / AllenFang/react-bootstrap-table

Ambiguity between 'defaultSortOrder' and 'defaultASC'

未關閉
#1,631 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
react-bootstrap-table2
主要語言
JavaScript
星號
2.2k
分支
761
PR 合併指標
30 天內沒有已合併 PR

描述

I was in need to make the first sort order as ascending when any column is sorted for the first time. So used `defaultSortOrder: 'asc'` option for table but it didnt work.

Then I used `defaultASC` prop with `TableHeaderColumn` element and it worked.

Now if `defaultASC` sets the first sort of a column then it is ambiguous with `defaultSortOrder`. And if `defaultSortOrder` sets the initial sort order of the column then it is ambiguous with `sortOrder` option.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。