Skip to content

Commit

Permalink
fix: Remove date parameter from onCancel (#711)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This is a breaking change since it might people using the `onCancel` parameter in weird ways.
  • Loading branch information
robert-nash committed Jun 26, 2023
1 parent 4aee8ae commit 947614a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 947614a

Please sign in to comment.