File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ var App = React.createClass({
210
210
211
211
return (
212
212
< div style = { { fontSize : 14 } } >
213
- < div style = { { maxWidth : 600 } } >
213
+ < div style = { { maxWidth : 600 , height : 1500 } } >
214
214
< section className = "example" style = { { marginBottom : 20 } } >
215
215
< DropdownList
216
216
placeholder = 'hi...'
Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ var DropdownList = React.createClass({
168
168
}
169
169
</ div >
170
170
< Popup { ..._ . pick ( this . props , Object . keys ( compat . type ( Popup ) . propTypes ) ) }
171
- onOpening = { ( ) => ( this . refs . list . forceUpdate ( ) , this . focus ( ) ) }
171
+ onOpen = { this . focus }
172
+ onOpening = { ( ) => this . refs . list . forceUpdate ( ) }
172
173
onRequestClose = { this . close } >
173
174
174
175
< div >
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ module.exports = {
16
16
changed = lastItem !== focused
17
17
shown = state . visible && ! lastVisible
18
18
19
- if ( shown || ( state . visible && changed ) ) {
20
- if ( handler )
21
- handler ( selected , list , focused )
22
- else {
23
- state . scrollCancel && state . scrollCancel ( )
24
- state . scrollCancel = scrollTo ( selected , list )
25
- }
26
- }
19
+ // if ( shown || (state.visible && changed) ){
20
+ // if ( handler )
21
+ // handler(selected, list, focused)
22
+ // else {
23
+ // state.scrollCancel && state.scrollCancel()
24
+ // state.scrollCancel = scrollTo(selected, list)
25
+ // }
26
+ // }
27
27
} ,
28
28
}
You can’t perform that action at this time.
0 commit comments