Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Table组件Column的responsive属性会使defaultSortOrder失效 #32847

Open
qiujie8092916 opened this issue Nov 13, 2021 · 6 comments
Open
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@qiujie8092916
Copy link

重现链接

https://codesandbox.io/s/shai-xuan-he-pai-xu-antd-4-17-0-alpha-9-forked-821e0?file=/index.js

antd 版本

4.16.13

重现步骤

配置了responsive属性的列项导致defaultSortOrder默认排序失效,另外不太清楚responsive属性的作用

期望的结果是什么?

defaultSortOrder 默认排序顺序生效

实际的结果是什么?

defaultSortOrder 默认排序顺序失效

浏览器

Chrome

浏览器版本

95.0.4638.69

操作系统

Windows

其他

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Nov 15, 2021
@afc163
Copy link
Member

afc163 commented Nov 15, 2021

不太清楚responsive属性的作用

根据屏幕宽度决定是否要展示列。

导致defaultSortOrder默认排序失效

看了一下,不太好修。

@pennyun0307
Copy link

(#32847)

@pennyun0307
Copy link

#32847

@pennyun0307
Copy link

这个是ant DESIGN

@afc163
Copy link
Member

afc163 commented Apr 18, 2022

同一个问题,目前不太好修:#35057

@bruce828
Copy link

我这边没配responsive属性,defaultSortOrder也是不生效啊,这个bug除了重写useSorter.js之外无解吗,antd版本4.19.2,版本有限制不能升级。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

No branches or pull requests

4 participants