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 clearing the search query of select options with nzCustomContent enabled some options are empty. #5178

Closed
CipherdevNL opened this issue Apr 29, 2020 · 3 comments · Fixed by #5425

Comments

@CipherdevNL
Copy link

CipherdevNL commented Apr 29, 2020

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-z6h7vm

Steps to reproduce

What is expected?

It should show the Windows option with its custom content

What is actually happening?

The option is not showing the original content before search.

Environment Info
ng-zorro-antd 9.1.0
Browser Firefox 75.0 64Bits on MacOS

I ran into this bug when creating an phone number component. After searching for the calling code it will have a list with empty content. Only after scrolling they will reappear.

The stackblitz has the same code used inside the demo. But in the stackblitz it works :/

Screenshot 2020-04-29 at 10 47 54

@zmzimpl
Copy link

zmzimpl commented May 8, 2020

same issue here!
image

@bilalucar
Copy link

Because of this problem, we did not upgrade our project to Angular 9. Hopefully it will be fixed as soon as possible.

@vthinkxie
Copy link
Member

vthinkxie commented Jun 15, 2020

Hi all, the bug is caused by the virtual scroll of @angular/cdk
the diff strategy and template cache has something wrong in this situation
ref angular/components#15838
set cdkVirtualForTemplateCacheSize to 0 as a temp solution

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

Successfully merging a pull request may close this issue.

4 participants