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:
parent
b82638c131
commit
b7606083e1
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: tweak
|
||||
|
||||
Fix DateTimePickerControl's onChange date arg to only be a string (TypeScript).
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue