This repository was archived by the owner on Jul 19, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ module.exports = React.createClass({
115
115
props . onClick = this . selectOption . bind ( this , child ) ;
116
116
props . onFocus = this . handleOptionFocus ;
117
117
props . onKeyDown = this . handleOptionKeyDown . bind ( this , child ) ;
118
- props . onMouseEnter = this . handleOptionMouseEnter . bind ( this , index ) ;
118
+ props . onMouseEnter = this . handleOptionMouseEnter . bind (
119
+ this , optionIndexes . length - 1 ) ;
119
120
} . bind ( this ) ) ;
120
121
return {
121
122
optionIndexes : optionIndexes ,
@@ -170,6 +171,7 @@ module.exports = React.createClass({
170
171
171
172
handleOptionFocus : function ( ) {
172
173
// see `handleOptionBlur`
174
+ console . log ( 'handleOptionFocus' ) ;
173
175
clearTimeout ( this . blurTimer ) ;
174
176
} ,
175
177
@@ -347,6 +349,8 @@ module.exports = React.createClass({
347
349
return inputValue || value ;
348
350
} ,
349
351
352
+ // index is the index of the option among the list of only options,
353
+ // NOT among all elements in the DOM
350
354
focusOptionAtIndex : function ( index ) {
351
355
if ( ! this . state . isOpen && this . state . value )
352
356
return this . focusSelectedOption ( ) ;
You can’t perform that action at this time.
0 commit comments