Skip to content

Commit

Permalink
Add value props to EuiSelect props (elastic#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashikmeerankutty authored and snide committed Aug 20, 2020
1 parent 835eabc commit 8d39b29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/form/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export interface EuiSelectOption
text: React.ReactNode;
}

export type EuiSelectProps = SelectHTMLAttributes<HTMLSelectElement> &
export type EuiSelectProps = Omit<
SelectHTMLAttributes<HTMLSelectElement>,
'value'
> &
CommonProps & {
options?: EuiSelectOption[];
isInvalid?: boolean;
Expand All @@ -49,6 +52,7 @@ export type EuiSelectProps = SelectHTMLAttributes<HTMLSelectElement> &
*/
hasNoInitialSelection?: boolean;
inputRef?: Ref<HTMLSelectElement>;
value?: string | number;

/**
* when `true` creates a shorter height input
Expand Down

0 comments on commit 8d39b29

Please sign in to comment.