Skip to content

Commit

Permalink
fix(Select): revert format option label prop
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed May 6, 2019
1 parent cd61d37 commit e29ea73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type SelectProps = {|
valueComponent?: React$Node,
components?: Object,
className?: string,
formatOptionLabel?: Function,
|};

type SelectPropsFromHOCs = {|
Expand Down Expand Up @@ -121,6 +122,7 @@ class Select extends React.Component<SelectProps & SelectPropsFromHOCs> {
onChange,
withPortal,
theme,
formatOptionLabel,
...rest
} = this.props;

Expand All @@ -146,6 +148,7 @@ class Select extends React.Component<SelectProps & SelectPropsFromHOCs> {
styles={ customStyles({ ...rest, COLORS: theme.COLORS || COLORS }) }
value={ selectValue }
components={ components }
formatOptionLabel={ formatOptionLabel }
/>
</SelectTag>
);
Expand Down

0 comments on commit e29ea73

Please sign in to comment.