You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click the tree select and select any person, e.g., "Person A"
Click outside to close the tree select dropdown. At this point, the selected tag is accurate (should show "Person A")
Click outside to close the dropdown menu
Click "Filter Users" to open up the dropdown menu again
Observe that the selected tag is not shown. However, if you inspect elements, the corresponding nz-select-item exists in the DOM.
Repeat steps 2-6 with
a. unselecting the user you selected above leads to console error
b. selecting a user on the same team leads to same error as above
c. selecting a user on a different team leads to the issue stacking
What is expected?
When showing the NzTreeSelect within a dropdown menu, the selected tags should persist and show correctly given an initial FormControl value.
What is actually happening?
When there is an initial FormControl value, the NzTreeSelect doesn't render the selected tags properly on subsequent shows of the NzTreeSelect.
After Step 6
The NzTreeSelect dropdown is open to show that the nodes correspond correctly to the FormControl.
After Step 7c
Notice the gap where the "Person A" tag would be.
The console error mentioned above is:
ERROR TypeError: Cannot read property 'zoomMotion' of undefined
at eval (transition_animation_engine.ts:383)
at Array.forEach (<anonymous>)
at AnimationTransitionNamespace.prepareLeaveAnimationListeners (transition_animation_engine.ts:375)
at AnimationTransitionNamespace.removeNode (transition_animation_engine.ts:440)
at TransitionAnimationEngine.removeNode (transition_animation_engine.ts:740)
at InjectableAnimationEngine.AnimationEngine.onRemove (animation_engine_next.ts:70)
at AnimationRenderer.BaseAnimationRenderer.removeChild (animation_renderer.ts:175)
at DebugRenderer2.removeChild (services.ts:772)
at execRenderNodeAction (util.ts:369)
at visitRenderNode (util.ts:334)
It seems like references to previous nz-select-items are lost.
Environment
Info
ng-zorro-antd
9.3.0
Browser
Google Chrome 84.0.4147.89 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
cjwang18
changed the title
NzTreeSelect: Selected tags not showing up when used in dropdown menu
TreeSelect: Selected tags not showing up when used in dropdown menu
Jul 28, 2020
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-mmkvdd
Steps to reproduce
nz-select-item
exists in the DOM.a. unselecting the user you selected above leads to console error
b. selecting a user on the same team leads to same error as above
c. selecting a user on a different team leads to the issue stacking
What is expected?
When showing the NzTreeSelect within a dropdown menu, the selected tags should persist and show correctly given an initial FormControl value.
What is actually happening?
When there is an initial FormControl value, the NzTreeSelect doesn't render the selected tags properly on subsequent shows of the NzTreeSelect.
After Step 6

The NzTreeSelect dropdown is open to show that the nodes correspond correctly to the FormControl.
After Step 7c

Notice the gap where the "Person A" tag would be.
The console error mentioned above is:
It seems like references to previous
nz-select-item
s are lost.The text was updated successfully, but these errors were encountered: