AllenFang / AllenFang/react-bootstrap-table

Ambiguity between 'defaultSortOrder' and 'defaultASC'

Aberta
#1,631 1 comentário 0 reações 0 responsáveis Ver no GitHub
react-bootstrap-table2
Linguagem predominante
JavaScript
Estrelas
2.2k
Forks
761
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.