AllenFang / AllenFang/react-bootstrap-table

Default sorting not working: sortFunc not called for defaultSortName column

オープン
#1,373 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.2k
フォーク
761
PR マージ指標
30日以内にマージされた PR はありません

説明

I have too much code to show it all, but its basically like the "Custom Sort with Extra Data" example. Only I want to sort on the "Product Quality" column by default. In my options I have basically:

Object.assign( options, {
defaultSortName : 'quality',
defaultSortOrder: 'asc'
} );

I stop in Chrome debugger and see the options being set. But I still always sort on the first column. Only when I click on the header to sort on the "Product Quality" column do I stop in my sortFunc -- it works then so I know the problem isn't with the sortFunc itself.

Any thoughts?
-= Jab

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。