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

Different behavior on table filter popover with scroll y and without scroll y #25668

Closed
1 task done
Cenume opened this issue Jul 16, 2020 · 4 comments
Closed
1 task done
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@Cenume
Copy link

Cenume commented Jul 16, 2020

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

try the debounced search from the popover. type in some search query and the table will filter itself in 0.5 second

Try the same thing with // scroll={{ y: 100 }} (line 139) enabled

What is expected?

retain the search popover when the table lost all data or changed from no data -> have data

What is actually happening?

search popover destroyed when the table lost all data or changed from no data -> have data (only when the scroll y is enabled)

Environment Info
antd 4.4.2
React 16.12
System any
Browser any
@07akioni 07akioni added the 🐛 Bug Ant Design Team had proved that this is a bug. label Jul 16, 2020
@hoho2017
Copy link
Contributor

search no data,table resize and refresh,so the data is cleaned

@hoho2017
Copy link
Contributor

@Cenume
Copy link
Author

Cenume commented Jul 24, 2020

@hoho2017 yeah, that demo doesn't use debounced search, if you press enter it is expected to disappear, however with debounce search, it is expected to retain the popover.

in my demo, the table without scroll-y works but with scroll-y it doesn't work, I think the behavior shouldn't be different

@afc163
Copy link
Member

afc163 commented Aug 23, 2021

Duplicate of #29366

@afc163 afc163 marked this as a duplicate of #29366 Aug 23, 2021
@afc163 afc163 closed this as completed Aug 23, 2021
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

5 participants