Skip to content

Commit b2a4974

Browse files
committed
release v2.5.1
1 parent 9fa804c commit b2a4974

File tree

5 files changed

+31
-26
lines changed

5 files changed

+31
-26
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widgets",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"main": "dist/react-widgets.js",
55
"description": "A set of input widgets for React",
66
"homepage": "http://jquense.github.io/react-widgets/docs",

dist/react-widgets.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/DropdownList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ var DropdownList = React.createClass({
166166
React.createElement(
167167
Popup,
168168
babelHelpers._extends({}, _.pick(this.props, Object.keys(compat.type(Popup).propTypes)), {
169+
onOpen: this.focus,
169170
onOpening: function () {
170-
return (_this.refs.list.forceUpdate(), _this.focus());
171+
return _this.refs.list.forceUpdate();
171172
},
172173
onRequestClose: this.close }),
173174
React.createElement(

lib/mixins/PopupScrollToMixin.js

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@ var scrollTo = require("../util/dom/scroll");
33

44
module.exports = {
55

6-
_scrollTo: function (selected, list, focused) {
7-
var state = this._scrollState || (this._scrollState = {}),
8-
handler = this.props.onMove,
9-
lastVisible = state.visible,
10-
lastItem = state.focused,
11-
shown,
12-
changed;
6+
_scrollTo: function (selected, list, focused) {
7+
var state = this._scrollState || (this._scrollState = {}),
8+
handler = this.props.onMove,
9+
lastVisible = state.visible,
10+
lastItem = state.focused,
11+
shown,
12+
changed;
1313

14-
state.visible = !(!list.offsetWidth || !list.offsetHeight);
15-
state.focused = focused;
14+
state.visible = !(!list.offsetWidth || !list.offsetHeight);
15+
state.focused = focused;
1616

17-
changed = lastItem !== focused;
18-
shown = state.visible && !lastVisible;
17+
changed = lastItem !== focused;
18+
shown = state.visible && !lastVisible
1919

20-
if (shown || state.visible && changed) {
21-
if (handler) handler(selected, list, focused);else {
22-
state.scrollCancel && state.scrollCancel();
23-
state.scrollCancel = scrollTo(selected, list);
24-
}
25-
}
26-
} };
20+
// if ( shown || (state.visible && changed) ){
21+
// if ( handler )
22+
// handler(selected, list, focused)
23+
// else {
24+
// state.scrollCancel && state.scrollCancel()
25+
// state.scrollCancel = scrollTo(selected, list)
26+
// }
27+
// }
28+
;
29+
} };

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widgets",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "A set of input widgets for React",
55
"main": "lib/index.js",
66
"author": {

0 commit comments

Comments
 (0)