Browse Source

fix: Make events non-optional for Popconfirm (#22438)

pull/22518/head
Chiciuc Nicușor 5 years ago
committed by GitHub
parent
commit
ba2ef53089
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/popconfirm/index.tsx

4
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<HTMLElement>) => void;
onCancel?: (e?: React.MouseEvent<HTMLElement>) => void;
onConfirm?: (event: React.MouseEvent<HTMLElement>) => void;
onCancel?: (event: React.MouseEvent<HTMLElement>) => void;
okText?: React.ReactNode;
okType?: ButtonType;
cancelText?: React.ReactNode;

Loading…
Cancel
Save