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
Currently, nzIcon on the nz-popconfirm directive is typed as string | TemplateRef<void>. This makes it impossible to pass null to hide the icon without triggering a TypeScript error.
Reproducible Example
<anz-popconfirmnzPopconfirmTitle="Are you sure?"
[nzIcon]="null"
>
Delete
</a>
However, looking at the internal template implementation (file: /popconfirm.ts), there is a logic check specifically handling null values:
@if(nzIcon!==null){ ... }
Expected Behavior
The nzIcon input type should be updated to accept null so that the internal check @if (nzIcon !== null) can actually be utilized by consumers.