Skip to content

Commit f6a8044

Browse files
feat(module:popconfirm): make nzOkDanger coerce to boolean (#7720)
1 parent 754ded6 commit f6a8044

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/popconfirm/popconfirm.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'popconfirm';
5151
})
5252
export class NzPopconfirmDirective extends NzTooltipBaseDirective {
5353
readonly _nzModuleName: NzConfigKey = NZ_CONFIG_MODULE_NAME;
54+
static ngAcceptInputType_nzOkDanger: BooleanInput;
5455
static ngAcceptInputType_nzCondition: BooleanInput;
5556
static ngAcceptInputType_nzPopconfirmShowArrow: BooleanInput;
5657
static ngAcceptInputType_nzPopconfirmArrowPointAtCenter: BooleanInput;
@@ -68,7 +69,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective {
6869
@Input('nzPopconfirmVisible') override visible?: boolean;
6970
@Input() nzOkText?: string;
7071
@Input() nzOkType?: string;
71-
@Input() nzOkDanger?: boolean;
72+
@Input() @InputBoolean() nzOkDanger?: boolean;
7273
@Input() nzCancelText?: string;
7374
@Input() nzBeforeConfirm?: () => Observable<boolean> | Promise<boolean> | boolean;
7475
@Input() nzIcon?: string | TemplateRef<void>;

0 commit comments

Comments
 (0)