Skip to content

Commit

Permalink
Merge pull request #1850 from kcliu/pass_more_properties
Browse files Browse the repository at this point in the history
pass removeValue() and always pass valueArray to menuRenderer
  • Loading branch information
JedWatson authored Oct 25, 2017
2 parents 0ab7319 + 28309ef commit 5a273e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@ class Select extends React.Component {
optionRenderer: this.props.optionRenderer || this.getOptionLabel,
options,
selectValue: this.selectValue,
removeValue: this.removeValue,
valueArray,
valueKey: this.props.valueKey,
onOptionRef: this.onOptionRef,
Expand Down Expand Up @@ -1060,7 +1061,7 @@ class Select extends React.Component {
{this.renderClear()}
{this.renderArrow()}
</div>
{isOpen ? this.renderOuter(options, !this.props.multi ? valueArray : null, focusedOption) : null}
{isOpen ? this.renderOuter(options, valueArray, focusedOption) : null}
</div>
);
}
Expand Down

0 comments on commit 5a273e1

Please sign in to comment.