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
Remove $event.stopPropagation() in contextMenu method at line 41, it seems nothing happened when clicking. But after putting breakpoint in NzDropdownService#create and step into, we can see the dropdown be created and close immediately.
What is expected?
Create and show dropdown correctly, like ng-zorro-antd@7.0.0-rc.3.
NzDropdownService is designed for contextmenu event, all click event outside the menu will close it immediately.
it works as design, you can add $event.stopPropagation() just like what you have done in the repro link.
Reproduction link
https://stackblitz.com/edit/angular-snzcmj-q1nxjh
Steps to reproduce
Remove
$event.stopPropagation()
in contextMenu method at line 41, it seems nothing happened when clicking. But after putting breakpoint inNzDropdownService#create
and step into, we can see the dropdown be created and close immediately.What is expected?
Create and show dropdown correctly, like ng-zorro-antd@7.0.0-rc.3.
stackblitz with ng-zorro-antd@7.0.0-rc.3: https://stackblitz.com/edit/angular-snzcmj-hzlura
What is actually happening?
Dropdown was created and closed immediately.
Sorry for my English.
The text was updated successfully, but these errors were encountered: