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 bf90c75 commit 5ff4dfb
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 7 deletions.
29 changes: 27 additions & 2 deletions dist/react-select.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function clearRenderer() {
});
}

var babelHelpers = {};
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
Expand Down Expand Up @@ -344,6 +345,28 @@ var possibleConstructorReturn = function (self, call) {
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};





















babelHelpers;

var Option = function (_React$Component) {
inherits(Option, _React$Component);

Expand Down Expand Up @@ -686,8 +709,10 @@ var Select$1 = function (_React$Component) {
var menuDOM = ReactDOM.findDOMNode(this.menu);
var focusedRect = focusedDOM.getBoundingClientRect();
var menuRect = menuDOM.getBoundingClientRect();
if (focusedRect.bottom > menuRect.bottom || focusedRect.top < menuRect.top) {
if (focusedRect.bottom > menuRect.bottom) {
menuDOM.scrollTop = focusedDOM.offsetTop + focusedDOM.clientHeight - menuDOM.offsetHeight;
} else if (focusedRect.top < menuRect.top) {
menuDOM.scrollTop = focusedDOM.offsetTop;
}
}
if (this.props.scrollMenuIntoView && this.menuContainer) {
Expand Down Expand Up @@ -1733,7 +1758,7 @@ Select$1.propTypes = {
clearRenderer: PropTypes.func, // create clearable x element
clearValueText: stringOrNode, // title for the "clear" control
clearable: PropTypes.bool, // should it be possible to reset value
closeOnSelect: React.PropTypes.bool, // whether to close the menu when a value is selected
closeOnSelect: PropTypes.bool, // whether to close the menu when a value is selected
deleteRemoves: PropTypes.bool, // whether backspace removes an item if there is no text input
delimiter: PropTypes.string, // delimiter to use to join multiple values for the hidden field value
disabled: PropTypes.bool, // whether the Select is disabled or not
Expand Down
29 changes: 27 additions & 2 deletions dist/react-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function clearRenderer() {
});
}

var babelHelpers = {};
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
Expand Down Expand Up @@ -350,6 +351,28 @@ var possibleConstructorReturn = function (self, call) {
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};





















babelHelpers;

var Option = function (_React$Component) {
inherits(Option, _React$Component);

Expand Down Expand Up @@ -692,8 +715,10 @@ var Select$1 = function (_React$Component) {
var menuDOM = ReactDOM.findDOMNode(this.menu);
var focusedRect = focusedDOM.getBoundingClientRect();
var menuRect = menuDOM.getBoundingClientRect();
if (focusedRect.bottom > menuRect.bottom || focusedRect.top < menuRect.top) {
if (focusedRect.bottom > menuRect.bottom) {
menuDOM.scrollTop = focusedDOM.offsetTop + focusedDOM.clientHeight - menuDOM.offsetHeight;
} else if (focusedRect.top < menuRect.top) {
menuDOM.scrollTop = focusedDOM.offsetTop;
}
}
if (this.props.scrollMenuIntoView && this.menuContainer) {
Expand Down Expand Up @@ -1739,7 +1764,7 @@ Select$1.propTypes = {
clearRenderer: PropTypes.func, // create clearable x element
clearValueText: stringOrNode, // title for the "clear" control
clearable: PropTypes.bool, // should it be possible to reset value
closeOnSelect: React__default.PropTypes.bool, // whether to close the menu when a value is selected
closeOnSelect: PropTypes.bool, // whether to close the menu when a value is selected
deleteRemoves: PropTypes.bool, // whether backspace removes an item if there is no text input
delimiter: PropTypes.string, // delimiter to use to join multiple values for the hidden field value
disabled: PropTypes.bool, // whether the Select is disabled or not
Expand Down
2 changes: 1 addition & 1 deletion dist/react-select.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ var Select = function (_React$Component) {
var menuDOM = _reactDom2.default.findDOMNode(this.menu);
var focusedRect = focusedDOM.getBoundingClientRect();
var menuRect = menuDOM.getBoundingClientRect();
if (focusedRect.bottom > menuRect.bottom || focusedRect.top < menuRect.top) {
if (focusedRect.bottom > menuRect.bottom) {
menuDOM.scrollTop = focusedDOM.offsetTop + focusedDOM.clientHeight - menuDOM.offsetHeight;
} else if (focusedRect.top < menuRect.top) {
menuDOM.scrollTop = focusedDOM.offsetTop;
}
}
if (this.props.scrollMenuIntoView && this.menuContainer) {
Expand Down Expand Up @@ -1209,7 +1211,7 @@ Select.propTypes = {
clearRenderer: _propTypes2.default.func, // create clearable x element
clearValueText: stringOrNode, // title for the "clear" control
clearable: _propTypes2.default.bool, // should it be possible to reset value
closeOnSelect: _react2.default.PropTypes.bool, // whether to close the menu when a value is selected
closeOnSelect: _propTypes2.default.bool, // whether to close the menu when a value is selected
deleteRemoves: _propTypes2.default.bool, // whether backspace removes an item if there is no text input
delimiter: _propTypes2.default.string, // delimiter to use to join multiple values for the hidden field value
disabled: _propTypes2.default.bool, // whether the Select is disabled or not
Expand Down

0 comments on commit 5ff4dfb

Please sign in to comment.