Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Custom value now trims whitespaces before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
Samrith Shankar committed Sep 20, 2017
1 parent 3c3e694 commit ffa5b49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-select-input",
"version": "0.0.5",
"version": "0.0.6",
"description": "react-select-input React component",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ export default class SelectInput extends Component {
return this.state.searchMatchOptions[index];
else
return {
[this.props.labelKey]: this.input.value,
[this.props.valueKey]: this.input.value
[this.props.labelKey]: this.input.value/trim(),
[this.props.valueKey]: this.input.value.trim()
}
}

Expand Down

0 comments on commit ffa5b49

Please sign in to comment.