vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.2k stars 3.79k forks source link

When use filterIcon with a custom filterDropdown, sorts also gets triggered #3819

Closed martijn10kb closed 3 years ago

martijn10kb commented 3 years ago

Version

2.0.1

Environment

ant-design-vue@2.0.1, windows, chrome, TSX with vue3

Reproduction link

(doesnt work) Edit on CodeSandbox

Steps to reproduce

Our setup is TSX with vue3 with the composition api. And the new ant-design-vue@2.0.1 Of we maken an table with column. And in one of the columns we make it sortable and we set a custom filterIcon with a custom filterDropdown. Then every time we click the filtericon the sort also gets triggered with that specific column.

What is expected?

1.autofocus 2.no sorting

What is actually happening?

1.no autofocus 2.sorting


Sorry i am not able to make an workable codesandbox.io


The issue with sorting on clicking on the filtericon is solved when assigning a icon like this: column.filterIcon = [<SearchOutlined />]; instead of column.filterIcon = <SearchOutlined />;

martijn10kb commented 3 years ago

-@tangjinzhou Why is this closed?- Thanks for fixinG!

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.