Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Sep 9, 2017
2 parents 4963924 + 2d388dc commit c1722bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -395,6 +395,7 @@ function onInputKeyDown(event) {
| optionRenderer | func | undefined | function which returns a custom way to render the options in the menu |
| options | array | undefined | array of options |
| placeholder | string\|node | 'Select ...' | field placeholder, displayed when there's no value |
| required | bool | false | applies HTML5 required attribute when needed |
| scrollMenuIntoView | bool | true | whether the viewport will shift to display the entire menu when engaged |
| searchable | bool | true | whether to enable searching feature or not |
| searchPromptText | string\|node | 'Type to search' | label to prompt for search input |
Expand Down
3 changes: 3 additions & 0 deletions src/Select.js
Expand Up @@ -98,6 +98,9 @@ class Select extends React.Component {
this.setState({
required: this.handleRequired(valueArray[0], nextProps.multi),
});
} else if (this.props.required) {
// Used to be required but it's not any more
this.setState({ required: false });
}
}

Expand Down

0 comments on commit c1722bb

Please sign in to comment.