From 947614a0250a33db826ebd1c27e03bb198d063d9 Mon Sep 17 00:00:00 2001 From: robert-nash Date: Mon, 26 Jun 2023 15:47:03 +0100 Subject: [PATCH] fix: Remove date parameter from onCancel (#711) BREAKING CHANGE: This is a breaking change since it might people using the `onCancel` parameter in weird ways. --- typings/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index fb1687d..c03b792 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -269,9 +269,8 @@ export interface DateTimePickerProps { /** * Handler called when the user presses the cancel button - * Passes the current selected date */ - onCancel(date: Date): void; + onCancel(): void; /** * Called when the underlying modal finishes its' closing animation