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

@rc-component/trigger doesn't work with portals #434

Open
Ke1sy opened this issue Oct 20, 2023 · 0 comments
Open

@rc-component/trigger doesn't work with portals #434

Ke1sy opened this issue Oct 20, 2023 · 0 comments

Comments

@Ke1sy
Copy link

Ke1sy commented Oct 20, 2023

After update from v1.14.2 to v1.14.3 I noticed that @rc-component/trigger doesn't work good with portals as previously.
We use the react-select with portal inside the antd Table filter dropdown (antd@5.6.3). Filter dropdown has the search value as well as "Filter" and "Clear" buttons.
image

To apply the filter user should select option and type search value and click "Filter". But we faced the issues with select (react-select) that uses portals after @rc-component/trigger was updated to v1.14.3 or higher.

Expected behaviour:
After selecting the option, the dropdown is not closed and user can continue set up the filter.

Codesandbox with v1.14.2:
https://codesandbox.io/s/filter-and-sorter-antd-5-10-0-forked-lygdxm?file=/demo.tsx

Actual behaviour:
After selecting the option, the dropdown is closed and user cannot continue set up the filter.

Codesandbox with v1.14.3:
https://codesandbox.io/s/filter-and-sorter-antd-5-10-0-forked-q6h9s9?file=/demo.tsx

We believe that this issue is caused by these changes 854325f.

CC: @mellis481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant