File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class Item extends React.Component {
67
67
role = "option"
68
68
onClick = { this . handleClick . bind ( this ) }
69
69
onMouseDown = { this . handleClick . bind ( this ) } >
70
- < Icon name = "account" />
70
+ < Icon name = { this . props . type } />
71
71
{ this . boldSearchText ( this . props . children . label ) }
72
72
</ a >
73
73
</ li >
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class Menu extends React.Component {
42
42
key = { c . id }
43
43
id = { c . id }
44
44
index = { i }
45
+ type = { this . props . type }
45
46
setFocus = { this . props . setFocus }
46
47
isActive = { isActive }
47
48
handleItemFocus = { this . handleItemFocus . bind ( this ) }
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ class SLDSLookup extends React.Component {
40
40
if ( prevState . selectedIndex && ! this . state . selectIndex ) {
41
41
if ( this . refs . lookup ) React . findDOMNode ( this . refs . lookup ) . focus ( ) ;
42
42
}
43
+ else if ( ! prevState . selectedIndex && this . state . selectedIndex ) {
44
+ if ( this . refs . clearSelectedItemButton ) React . findDOMNode ( this . refs . clearSelectedItemButton ) . focus ( ) ;
45
+ }
43
46
}
44
47
45
48
//=================================================
You can’t perform that action at this time.
0 commit comments