ng-zorro-antd icon indicating copy to clipboard operation
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

Open fanguangjian opened this issue 4 years ago • 2 comments

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?

  • disabled menu item
  • The function of click() should not work in disbled li
    Environment Info
    ng-zorro-antd 9.3.0
    Browser Chrome

    fanguangjian avatar Dec 14 '20 00:12 fanguangjian

    any update?

    dertuerke avatar Dec 02 '21 09:12 dertuerke

    Still able to reproduce that on 18.0.1. Any update?

    ghost avatar Aug 29 '24 09:08 ghost