Skip to content

Commit

Permalink
Updating build
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Dec 20, 2015
1 parent c659587 commit 8e1503c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dist/react-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ var Async = _react2['default'].createClass({
});
}
},
focus: function focus() {
this.refs.select.focus();
},
resetState: function resetState() {
this._currentRequestId = -1;
this.setState({
Expand Down Expand Up @@ -153,6 +156,7 @@ var Async = _react2['default'].createClass({
if (isLoading) noResultsText = this.props.searchingText;
}
return _react2['default'].createElement(_Select2['default'], _extends({}, this.props, {
ref: 'select',
isLoading: isLoading,
noResultsText: noResultsText,
onInputChange: this.loadOptions,
Expand Down Expand Up @@ -419,6 +423,9 @@ var Select = _react2['default'].createClass({
window.scrollTo(0, window.scrollY + menuContainerRect.bottom + this.props.menuBuffer - window.innerHeight);
}
}
if (prevProps.disabled !== this.props.disabled) {
this.setState({ isFocused: false });
}
},

focus: function focus() {
Expand Down
2 changes: 1 addition & 1 deletion dist/react-select.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions examples/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ var Async = _react2['default'].createClass({
});
}
},
focus: function focus() {
this.refs.select.focus();
},
resetState: function resetState() {
this._currentRequestId = -1;
this.setState({
Expand Down Expand Up @@ -152,6 +155,7 @@ var Async = _react2['default'].createClass({
if (isLoading) noResultsText = this.props.searchingText;
}
return _react2['default'].createElement(_Select2['default'], _extends({}, this.props, {
ref: 'select',
isLoading: isLoading,
noResultsText: noResultsText,
onInputChange: this.loadOptions,
Expand Down Expand Up @@ -510,6 +514,9 @@ var Select = _react2['default'].createClass({
window.scrollTo(0, window.scrollY + menuContainerRect.bottom + this.props.menuBuffer - window.innerHeight);
}
}
if (prevProps.disabled !== this.props.disabled) {
this.setState({ isFocused: false });
}
},

focus: function focus() {
Expand Down
7 changes: 7 additions & 0 deletions examples/dist/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ var Async = _react2['default'].createClass({
});
}
},
focus: function focus() {
this.refs.select.focus();
},
resetState: function resetState() {
this._currentRequestId = -1;
this.setState({
Expand Down Expand Up @@ -153,6 +156,7 @@ var Async = _react2['default'].createClass({
if (isLoading) noResultsText = this.props.searchingText;
}
return _react2['default'].createElement(_Select2['default'], _extends({}, this.props, {
ref: 'select',
isLoading: isLoading,
noResultsText: noResultsText,
onInputChange: this.loadOptions,
Expand Down Expand Up @@ -419,6 +423,9 @@ var Select = _react2['default'].createClass({
window.scrollTo(0, window.scrollY + menuContainerRect.bottom + this.props.menuBuffer - window.innerHeight);
}
}
if (prevProps.disabled !== this.props.disabled) {
this.setState({ isFocused: false });
}
},

focus: function focus() {
Expand Down
4 changes: 4 additions & 0 deletions lib/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ var Async = _react2['default'].createClass({
});
}
},
focus: function focus() {
this.refs.select.focus();
},
resetState: function resetState() {
this._currentRequestId = -1;
this.setState({
Expand Down Expand Up @@ -151,6 +154,7 @@ var Async = _react2['default'].createClass({
if (isLoading) noResultsText = this.props.searchingText;
}
return _react2['default'].createElement(_Select2['default'], _extends({}, this.props, {
ref: 'select',
isLoading: isLoading,
noResultsText: noResultsText,
onInputChange: this.loadOptions,
Expand Down
3 changes: 3 additions & 0 deletions lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ var Select = _react2['default'].createClass({
window.scrollTo(0, window.scrollY + menuContainerRect.bottom + this.props.menuBuffer - window.innerHeight);
}
}
if (prevProps.disabled !== this.props.disabled) {
this.setState({ isFocused: false });
}
},

focus: function focus() {
Expand Down

0 comments on commit 8e1503c

Please sign in to comment.