From b9a439367f9a752b1a05afb1ce3bba749c3d792d Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 5 May 2021 04:23:21 +0300 Subject: [PATCH] Fixed #2009 - onBlur/onFocus's event argument should be typed as FocusEvent --- src/components/autocomplete/AutoComplete.d.ts | 4 ++-- src/components/calendar/Calendar.d.ts | 4 ++-- src/components/chips/Chips.d.ts | 4 ++-- src/components/dropdown/Dropdown.d.ts | 4 ++-- src/components/inputmask/InputMask.d.ts | 4 ++-- src/components/inputnumber/InputNumber.d.ts | 4 ++-- src/components/inputswitch/InputSwitch.d.ts | 4 ++-- src/components/multiselect/MultiSelect.d.ts | 4 ++-- src/components/togglebutton/ToggleButton.d.ts | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/autocomplete/AutoComplete.d.ts b/src/components/autocomplete/AutoComplete.d.ts index 62b3eb06bf..3fdb44d9ad 100755 --- a/src/components/autocomplete/AutoComplete.d.ts +++ b/src/components/autocomplete/AutoComplete.d.ts @@ -82,8 +82,8 @@ export interface AutoCompleteProps { selectedItemTemplate?: AutoCompleteSelectedItemTemplateType; transitionOptions?: object; onChange?(e: AutoCompleteChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; onSelect?(e: AutoCompleteSelectParams): void; onUnselect?(e: AutoCompleteUnselectParams): void; onDropdownClick?(e: AutoCompleteDropdownClickParams): void; diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index dd2acef280..4972e572ab 100644 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -101,8 +101,8 @@ export interface CalendarProps { dateTemplate?(e: CalendarDateTemplateParams): React.ReactNode; headerTemplate?(): React.ReactNode; footerTemplate?(): React.ReactNode; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; onInput?(event: React.FormEvent): void; onSelect?(e: CalendarSelectParams): void; onChange?(e: CalendarChangeParams): void; diff --git a/src/components/chips/Chips.d.ts b/src/components/chips/Chips.d.ts index 2356012ee9..6b4b0437c9 100755 --- a/src/components/chips/Chips.d.ts +++ b/src/components/chips/Chips.d.ts @@ -41,8 +41,8 @@ export interface ChipsProps { onAdd?(e: ChipsAddParams): void; onRemove?(e: ChipsRemoveParams): void; onChange?(e: ChipsChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; } export declare class Chips extends React.Component { } diff --git a/src/components/dropdown/Dropdown.d.ts b/src/components/dropdown/Dropdown.d.ts index 314235e90c..8a9b244d40 100755 --- a/src/components/dropdown/Dropdown.d.ts +++ b/src/components/dropdown/Dropdown.d.ts @@ -74,8 +74,8 @@ export interface DropdownProps { transitionOptions?: object; showOnFocus?: boolean; onChange?(e: DropdownChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; onMouseDown?(event: React.MouseEvent): void; onContextMenu?(event: React.MouseEvent): void; onShow?(): void; diff --git a/src/components/inputmask/InputMask.d.ts b/src/components/inputmask/InputMask.d.ts index 388dc35aec..599739be78 100644 --- a/src/components/inputmask/InputMask.d.ts +++ b/src/components/inputmask/InputMask.d.ts @@ -44,8 +44,8 @@ export interface InputMaskProps { ariaLabelledBy?: string; onComplete?(e: InputMaskCompleteParams): void; onChange?(e: InputMaskChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; } export declare class InputMask extends React.Component { } diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index ec7c595a16..a6fe1b41c9 100644 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -65,8 +65,8 @@ export interface InputNumberProps { ariaLabelledBy?: string; onValueChange?(e: InputNumberValueChangeParams): void; onChange?(e: InputNumberChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; onKeyDown?(event: React.KeyboardEvent): void; } diff --git a/src/components/inputswitch/InputSwitch.d.ts b/src/components/inputswitch/InputSwitch.d.ts index 6e60885ba8..6dd6969344 100644 --- a/src/components/inputswitch/InputSwitch.d.ts +++ b/src/components/inputswitch/InputSwitch.d.ts @@ -28,8 +28,8 @@ export interface InputSwitchProps { tooltipOptions?: TooltipOptions; ariaLabelledBy?: string; onChange?(e: InputSwitchChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; } export declare class InputSwitch extends React.Component { } diff --git a/src/components/multiselect/MultiSelect.d.ts b/src/components/multiselect/MultiSelect.d.ts index 71cbedbe9d..61d9dd7127 100755 --- a/src/components/multiselect/MultiSelect.d.ts +++ b/src/components/multiselect/MultiSelect.d.ts @@ -96,8 +96,8 @@ export interface MultiSelectProps { panelFooterTemplate?: MultiSelectPanelFooterTemplateType; transitionOptions?: object; onChange?(e: MultiSelectChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; onShow?(): void; onHide?(): void; } diff --git a/src/components/togglebutton/ToggleButton.d.ts b/src/components/togglebutton/ToggleButton.d.ts index 40145fa7da..a793ed2eac 100644 --- a/src/components/togglebutton/ToggleButton.d.ts +++ b/src/components/togglebutton/ToggleButton.d.ts @@ -32,8 +32,8 @@ export interface ToggleButtonProps { tooltipOptions?: TooltipOptions; ariaLabelledBy?: string; onChange?(e: ToggleButtonChangeParams): void; - onFocus?(event: React.FormEvent): void; - onBlur?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onBlur?(event: React.FocusEvent): void; } export declare class ToggleButton extends React.Component { }