Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
remove duplicated props from Select
Browse files Browse the repository at this point in the history
  • Loading branch information
justinanastos committed Nov 30, 2020
1 parent ee03c9a commit df7592e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ interface Props
>,
"onChange" | "name" | "id"
> {
disabled?: boolean;

/**
* `RefCallback` for props that should be spread onto a `label` component
* associated with this `Select`.
Expand Down Expand Up @@ -124,16 +122,6 @@ interface Props
ReturnType<UseSelectPropGetters<OptionProps>["getLabelProps"]>
>;

/**
* Callback called when the selected item changes
*
* This will be called syncronously after you try to close the menu. If you
* are running a long-running task, like fetching data or parseing something
* as the result of this handler; you might want to wrap your callback in a
* `setTimeout(... ,0)`.
*/
onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;

triggerAs?: As;

/**
Expand All @@ -145,7 +133,7 @@ interface Props
*/
value?: NonNullable<OptionProps["value"]> | null;

/** Default value for a non-controlled component */
/** Initial value for a non-controlled component */
initialValue?: NonNullable<OptionProps["value"]> | null;

size?: "auto" | "small" | "medium" | "extra large";
Expand Down

0 comments on commit df7592e

Please sign in to comment.