Skip to content

Commit

Permalink
Updating build
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Sep 13, 2017
1 parent eef7e45 commit 2c839e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions dist/react-select.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ var Select$1 = function (_React$Component) {
});
} else {
// otherwise, focus the input and open the menu
this._openAfterFocus = this.props.openAfterFocus;
this._openAfterFocus = this.props.openOnClick;
this.focus();
}
}
Expand Down Expand Up @@ -1794,7 +1794,7 @@ Select$1.propTypes = {
onOpen: PropTypes.func, // fires when the menu is opened
onSelectResetsInput: PropTypes.bool, // whether input is cleared on select (works only for multiselect)
onValueClick: PropTypes.func, // onClick handler for value labels: function (value, event) {}
openAfterFocus: PropTypes.bool, // boolean to enable opening dropdown when focused
openOnClick: PropTypes.bool, // boolean to control opening the menu when the control is clicked
openOnFocus: PropTypes.bool, // always open options menu on focus
optionClassName: PropTypes.string, // additional class(es) to apply to the <Option /> elements
optionComponent: PropTypes.func, // option component to render in dropdown
Expand Down Expand Up @@ -1848,6 +1848,7 @@ Select$1.defaultProps = {
onBlurResetsInput: true,
onSelectResetsInput: true,
onCloseResetsInput: true,
openOnClick: true,
optionComponent: Option,
pageSize: 5,
placeholder: 'Select...',
Expand Down Expand Up @@ -1948,7 +1949,7 @@ var Async = function (_Component) {

var cache = this._cache;

if (cache && cache.hasOwnProperty(inputValue)) {
if (cache && Object.prototype.hasOwnProperty.call(cache, inputValue)) {
this.setState({
options: cache[inputValue]
});
Expand Down
7 changes: 4 additions & 3 deletions dist/react-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ var Select$1 = function (_React$Component) {
});
} else {
// otherwise, focus the input and open the menu
this._openAfterFocus = this.props.openAfterFocus;
this._openAfterFocus = this.props.openOnClick;
this.focus();
}
}
Expand Down Expand Up @@ -1800,7 +1800,7 @@ Select$1.propTypes = {
onOpen: PropTypes.func, // fires when the menu is opened
onSelectResetsInput: PropTypes.bool, // whether input is cleared on select (works only for multiselect)
onValueClick: PropTypes.func, // onClick handler for value labels: function (value, event) {}
openAfterFocus: PropTypes.bool, // boolean to enable opening dropdown when focused
openOnClick: PropTypes.bool, // boolean to control opening the menu when the control is clicked
openOnFocus: PropTypes.bool, // always open options menu on focus
optionClassName: PropTypes.string, // additional class(es) to apply to the <Option /> elements
optionComponent: PropTypes.func, // option component to render in dropdown
Expand Down Expand Up @@ -1854,6 +1854,7 @@ Select$1.defaultProps = {
onBlurResetsInput: true,
onSelectResetsInput: true,
onCloseResetsInput: true,
openOnClick: true,
optionComponent: Option,
pageSize: 5,
placeholder: 'Select...',
Expand Down Expand Up @@ -1954,7 +1955,7 @@ var Async = function (_Component) {

var cache = this._cache;

if (cache && cache.hasOwnProperty(inputValue)) {
if (cache && Object.prototype.hasOwnProperty.call(cache, inputValue)) {
this.setState({
options: cache[inputValue]
});
Expand Down
2 changes: 1 addition & 1 deletion dist/react-select.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var Async = function (_Component) {

var cache = this._cache;

if (cache && cache.hasOwnProperty(inputValue)) {
if (cache && Object.prototype.hasOwnProperty.call(cache, inputValue)) {
this.setState({
options: cache[inputValue]
});
Expand Down
5 changes: 3 additions & 2 deletions lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ var Select = function (_React$Component) {
});
} else {
// otherwise, focus the input and open the menu
this._openAfterFocus = this.props.openAfterFocus;
this._openAfterFocus = this.props.openOnClick;
this.focus();
}
}
Expand Down Expand Up @@ -1247,7 +1247,7 @@ Select.propTypes = {
onOpen: _propTypes2.default.func, // fires when the menu is opened
onSelectResetsInput: _propTypes2.default.bool, // whether input is cleared on select (works only for multiselect)
onValueClick: _propTypes2.default.func, // onClick handler for value labels: function (value, event) {}
openAfterFocus: _propTypes2.default.bool, // boolean to enable opening dropdown when focused
openOnClick: _propTypes2.default.bool, // boolean to control opening the menu when the control is clicked
openOnFocus: _propTypes2.default.bool, // always open options menu on focus
optionClassName: _propTypes2.default.string, // additional class(es) to apply to the <Option /> elements
optionComponent: _propTypes2.default.func, // option component to render in dropdown
Expand Down Expand Up @@ -1301,6 +1301,7 @@ Select.defaultProps = {
onBlurResetsInput: true,
onSelectResetsInput: true,
onCloseResetsInput: true,
openOnClick: true,
optionComponent: _Option2.default,
pageSize: 5,
placeholder: 'Select...',
Expand Down

0 comments on commit 2c839e3

Please sign in to comment.