From e29ea73f140c41bbd36488773d43a778398a9c3b Mon Sep 17 00:00:00 2001 From: Osipov Vladimir Date: Mon, 6 May 2019 15:41:11 +0300 Subject: [PATCH] fix(Select): revert format option label prop --- src/components/Select/Select.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Select/Select.js b/src/components/Select/Select.js index bdfec2ec..03a62e52 100644 --- a/src/components/Select/Select.js +++ b/src/components/Select/Select.js @@ -22,6 +22,7 @@ type SelectProps = {| valueComponent?: React$Node, components?: Object, className?: string, + formatOptionLabel?: Function, |}; type SelectPropsFromHOCs = {| @@ -121,6 +122,7 @@ class Select extends React.Component { onChange, withPortal, theme, + formatOptionLabel, ...rest } = this.props; @@ -146,6 +148,7 @@ class Select extends React.Component { styles={ customStyles({ ...rest, COLORS: theme.COLORS || COLORS }) } value={ selectValue } components={ components } + formatOptionLabel={ formatOptionLabel } /> );