Skip to content

Commit

Permalink
pass removeValue() and always pass valueArray
Browse files Browse the repository at this point in the history
  • Loading branch information
kcliu committed Jul 4, 2017
1 parent 48348bc commit 28309ef
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 @@ -893,6 +893,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 @@ -1038,7 +1039,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 28309ef

Please sign in to comment.