AllenFang / AllenFang/react-bootstrap-table

Ambiguity between 'defaultSortOrder' and 'defaultASC'

Aperta
#1,631 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
react-bootstrap-table2
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.