Skip to content

Commit

Permalink
Merge branch 'master' into refactor/select-1
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson authored Jan 5, 2018
2 parents bb8e7b0 + 99acc31 commit 15920b2
Show file tree
Hide file tree
Showing 30 changed files with 930 additions and 316 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ignore": ["node-modules/**", "src/index.umd.js"],
"presets": [ "es2015", "stage-0", "react"],
"presets": [ "env", "stage-0", "react"],
"env": {
"test": {
"plugins": ["istanbul"],
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ class App extends React.Component {
console.log(`Selected: ${selectedOption.label}`);
}
render() {
const { selectedOption } = this.state;
const value = selectedOption && selectedOption.value;

return (
<Select
name="form-field-name"
value={this.state.selectedOption.value}
value={value}
onChange={this.handleChange}
options={[
{ value: 'one', label: 'One' },
Expand Down
Loading

0 comments on commit 15920b2

Please sign in to comment.