diff --git a/src/components/Select/Select.jsx b/src/components/Select/Select.jsx index 5c961392..651f8866 100644 --- a/src/components/Select/Select.jsx +++ b/src/components/Select/Select.jsx @@ -528,8 +528,7 @@ export default class Select extends React.Component { renderInput = () => { const { searchable, name, placeholder, multi } = this.props; - const { inputVisible, inputValue, value, options } = this.state; - + const { inputVisible, inputValue, value } = this.state; const multiClassName = multi && searchable ? classNames("select-input", { @@ -548,19 +547,6 @@ export default class Select extends React.Component { : "" : localePlaceholder; - let option = { label: value, value }; - options.forEach((item) => { - if (item.value === value) { - option = item; - } else if (item.options) { - item.options.forEach((op) => { - if (op.value === value) { - option = op; - } - }); - } - }); - return (