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

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

Closed
1 task done
martijn10kb opened this issue Mar 18, 2021 · 2 comments
Closed
1 task done

Comments

@martijn10kb
Copy link

martijn10kb commented Mar 18, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

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
Copy link
Author

martijn10kb commented Mar 24, 2021

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

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants