Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module:popconfirm): make nzOkDanger coerce to boolean #7720

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/popconfirm/popconfirm.ts
Expand Up @@ -51,6 +51,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'popconfirm';
})
export class NzPopconfirmDirective extends NzTooltipBaseDirective {
readonly _nzModuleName: NzConfigKey = NZ_CONFIG_MODULE_NAME;
static ngAcceptInputType_nzOkDanger: BooleanInput;
static ngAcceptInputType_nzCondition: BooleanInput;
static ngAcceptInputType_nzPopconfirmShowArrow: BooleanInput;
static ngAcceptInputType_nzPopconfirmArrowPointAtCenter: BooleanInput;
Expand All @@ -68,7 +69,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
@Input('nzPopconfirmVisible') override visible?: boolean;
@Input() nzOkText?: string;
@Input() nzOkType?: string;
@Input() nzOkDanger?: boolean;
@Input() @InputBoolean() nzOkDanger?: boolean;
@Input() nzCancelText?: string;
@Input() nzBeforeConfirm?: () => Observable<boolean> | Promise<boolean> | boolean;
@Input() nzIcon?: string | TemplateRef<void>;
Expand Down