File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
components/SLDSDropdownBase Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ module.exports = React.createClass( {
47
47
className :'' ,
48
48
listClassName :'' ,
49
49
openOn :'hover' ,
50
- listItemLabelRenderer :ListItemLabel ,
50
+ listItemRenderer :ListItemLabel ,
51
51
horizontalAlign :'left' ,
52
52
hoverCloseDelay :300
53
53
}
@@ -97,9 +97,13 @@ module.exports = React.createClass( {
97
97
this . setState ( { isOpen :false } ) ;
98
98
}
99
99
else if ( ! this . state . isFocused && prevState . isFocused ) {
100
- if ( this . refs . list && this . isMounted ( ) ) {
101
- if ( this . refs . list . getDOMNode ( ) . contains ( document . activeElement ) ) return ;
102
- this . setState ( { isOpen :false } )
100
+ if ( this . refs . list ) {
101
+ if ( this . isMounted ( ) && this . refs . list ) {
102
+ if ( this . refs . list . getDOMNode ( ) . contains ( document . activeElement ) ) {
103
+ return ;
104
+ }
105
+ this . setState ( { isOpen : false } ) ;
106
+ }
103
107
}
104
108
}
105
109
else if ( this . state . isClosing && ! prevState . isClosing ) {
You can’t perform that action at this time.
0 commit comments