From ba2ef530892749cf2c9982e0b6be7c070c83fe35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chiciuc=20Nicu=C8=99or?= Date: Fri, 20 Mar 2020 15:42:09 +0200 Subject: [PATCH] fix: Make events non-optional for Popconfirm (#22438) --- components/popconfirm/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/popconfirm/index.tsx b/components/popconfirm/index.tsx index 7648dd6ae5..a991b11f1c 100644 --- a/components/popconfirm/index.tsx +++ b/components/popconfirm/index.tsx @@ -11,8 +11,8 @@ import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; export interface PopconfirmProps extends AbstractTooltipProps { title: React.ReactNode; disabled?: boolean; - onConfirm?: (e?: React.MouseEvent) => void; - onCancel?: (e?: React.MouseEvent) => void; + onConfirm?: (event: React.MouseEvent) => void; + onCancel?: (event: React.MouseEvent) => void; okText?: React.ReactNode; okType?: ButtonType; cancelText?: React.ReactNode;