-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(module:tree): tree select search slow in virtual mode #7385
fix(module:tree): tree select search slow in virtual mode #7385
Conversation
This preview will be available after the AzureCI is passed. |
Codecov Report
@@ Coverage Diff @@
## master #7385 +/- ##
==========================================
+ Coverage 91.74% 91.76% +0.01%
==========================================
Files 502 502
Lines 16700 16702 +2
Branches 2604 2605 +1
==========================================
+ Hits 15321 15326 +5
+ Misses 1048 1046 -2
+ Partials 331 330 -1
Continue to review full report at Codecov.
|
a11e5c5
to
9b47830
Compare
This question bothered me for a long time since version 11. I solved it by this way temporarily #6426 (comment) . But when I upgraded to version 13, I just cannot find the same file and it didnt work fine anymore. I really hope this fix can be released as soon as possilble. |
I just updated to v13 and cant find the files either to change this, i tried updating the mjs files but the changes dont reflect. I am guessing the library doesnt use the angular compatibility compiler anymore. Anyone know how to modify this without forking it? @Dylan0405 did you find away around it? Thanks |
@whittssg Not really. I also changed the codes both in file 'node_modules\ng-zorro-antd\fesm2015\ng-zorro-antd-tree.mjs' and 'node_modules\ng-zorro-antd\fesm2020\ng-zorro-antd-tree.mjs' as metioned before. It works if part of my build config in angular.json is |
@jpoyard Maybe adding && this.nzSearchValue after this.nzHideUnMatched would work Thanks |
I believe its just the new cache in angular 13.. delete the cache folder under .angular and it should pick up the changes |
13e6ff1
to
ffb9474
Compare
@whittssg, i added |
Has this been merged yet? Thanks |
@whittssg 这个好像还没合并,朋友,你找到其他解决方案没呢?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #5873
What is the new behavior?
Does this PR introduce a breaking change?
Other information
For nz-tree component
when nzVirtualHeight is defined and nzHideUnMatched=true
then we should remove node with canHide=true from nzFlattenNodes
In showcase website, for tree select component, i put nzHideUnMatched=true for virtual scroll sample