Update DateTimePickerControl's onChange signature (TypeScript) (#34561)

* Omit HTML onChange evnt from DateTimePickerControl

* Changelog entry for DateTimePickerControl's onChange change.
This commit is contained in:
Matt Sherman 2022-09-02 15:46:27 -04:00 committed by GitHub
parent b82638c131
commit b7606083e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
Fix DateTimePickerControl's onChange date arg to only be a string (TypeScript).

View File

@ -20,7 +20,7 @@ export type DateTimePickerControlProps = {
disabled?: boolean;
is12Hour?: boolean;
onChange: ( date: string ) => void;
} & React.HTMLAttributes< HTMLDivElement >;
} & Omit< React.HTMLAttributes< HTMLDivElement >, 'onChange' >;
export const DateTimePickerControl: React.FC< DateTimePickerControlProps > = ( {
currentDate,