ng-zorro-antd
ng-zorro-antd copied to clipboard
<li nz-menu-item nzDisabled (click)="click()">disabled menu item</li> The function of click() should not work in disbled li
Reproduction link
https://ng-zorro-antd-ivy-7nd3k4.stackblitz.io
Steps to reproduce
<nz-dropdown-menu #menu="nzDropdownMenu">
-
<li nz-menu-item nzDisabled (click)="click()">disabled menu item
click(){ console.log("AAAA") }
What is expected?
<li nz-menu-item nzDisabled (click)="click()">disabled menu item</li>
The function of click() should not work in disbled li
What is actually happening?
| Environment | Info |
|---|---|
| ng-zorro-antd | 9.3.0 |
| Browser | Chrome |
any update?
Still able to reproduce that on 18.0.1. Any update?