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({
210210
211211 return (
212212 < div style = { { fontSize : 14 } } >
213- < div style = { { maxWidth : 600 } } >
213+ < div style = { { maxWidth : 600 , height : 1500 } } >
214214 < section className = "example" style = { { marginBottom : 20 } } >
215215 < DropdownList
216216 placeholder = 'hi...'
Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ var DropdownList = React.createClass({
168168 }
169169 </ div >
170170 < 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 ( ) }
172173 onRequestClose = { this . close } >
173174
174175 < div >
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ module.exports = {
1616 changed = lastItem !== focused
1717 shown = state . visible && ! lastVisible
1818
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+ // }
2727 } ,
2828}
You can’t perform that action at this time.
0 commit comments