Skip to content

Commit

Permalink
PR feedback: types
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Aug 26, 2021
1 parent 2ba41f6 commit 0176f31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/form/super_select/super_select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import React, { Component } from 'react';
import React, { Component, FocusEvent } from 'react';
import classNames from 'classnames';

import { CommonProps } from '../../common';
Expand All @@ -33,7 +33,7 @@ enum ShiftDirection {
export type EuiSuperSelectProps<T extends string> = CommonProps &
Omit<
EuiSuperSelectControlProps<T>,
'onChange' | 'onClick' | 'options' | 'value'
'onChange' | 'onClick' | 'onFocus' | 'onBlur' | 'options' | 'value'
> & {
/**
* Pass an array of options that must at least include:
Expand All @@ -54,8 +54,8 @@ export type EuiSuperSelectProps<T extends string> = CommonProps &
* You must pass an `onChange` function to handle the update of the value
*/
onChange?: (value: T) => void;
onFocus?: () => void;
onBlur?: () => void;
onFocus?: (event?: FocusEvent) => void;
onBlur?: (event?: FocusEvent) => void;

/**
* Change to `true` if you want horizontal lines between options.
Expand Down

0 comments on commit 0176f31

Please sign in to comment.