Skip to content

Commit

Permalink
fix(Dropdown): update event types (#4181)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
  • Loading branch information
aboyce and layershifter authored Aug 2, 2021
1 parent dd4de18 commit e9ce3da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/Dropdown/Dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ export interface StrictDropdownProps {
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props and the new item's value.
*/
onAddItem?: (event: React.KeyboardEvent<HTMLElement>, data: DropdownProps) => void
onAddItem?: (event: React.SyntheticEvent<HTMLElement>, data: DropdownProps) => void

/**
* Called on blur.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onBlur?: (event: React.KeyboardEvent<HTMLElement>, data: DropdownProps) => void
onBlur?: (event: React.FocusEvent<HTMLElement>, data: DropdownProps) => void

/**
* Called when the user attempts to change the value.
Expand All @@ -151,7 +151,7 @@ export interface StrictDropdownProps {
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick?: (event: React.KeyboardEvent<HTMLElement>, data: DropdownProps) => void
onClick?: (event: React.MouseEvent<HTMLElement>, data: DropdownProps) => void

/**
* Called when a close event happens.
Expand All @@ -167,7 +167,7 @@ export interface StrictDropdownProps {
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onFocus?: (event: React.SyntheticEvent<HTMLElement>, data: DropdownProps) => void
onFocus?: (event: React.FocusEvent<HTMLElement>, data: DropdownProps) => void

/**
* Called when a multi-select label is clicked.
Expand Down

0 comments on commit e9ce3da

Please sign in to comment.