AllenFang / AllenFang/react-bootstrap-table

Ambiguity between 'defaultSortOrder' and 'defaultASC'

Đang mở
#1,631 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
react-bootstrap-table2
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.