AllenFang / AllenFang/react-bootstrap-table

Default sorting not working: sortFunc not called for defaultSortName column

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

Descrição

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

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.