AllenFang / AllenFang/react-bootstrap-table

Default sorting not working: sortFunc not called for defaultSortName column

未关闭
#1,373 1 条评论 0 个 reaction 已指派 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 摘要。