Skip to content

Commit

Permalink
fix bug #269: clicking on an filter option returned the wrong result
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Mar 28, 2016
1 parent 4b9b55e commit 7b256fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export default class ComboBox extends Component {
* Returns the value of the child with a certain index.
*/
_getValueForIndex(index) {
return this.props.children[index].props.value;
return this.filteredOptions[index].props.value;
}

/**
Expand Down

0 comments on commit 7b256fe

Please sign in to comment.