You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Using down/up keys, set Focus on list item and assign it to aria-activedescendant attribute in input.
41
46
// Need to keep track of filtered list length to be able to increment/decrement the focus index so it's contained to the number of available list items.
@@ -72,7 +77,7 @@ class SLDSLookup extends React.Component {
72
77
handleDeleteSelected(){
73
78
this.setState({
74
79
selectedIndex: null,
75
-
isOpen: false
80
+
isOpen: true,
76
81
});
77
82
}
78
83
@@ -144,7 +149,10 @@ class SLDSLookup extends React.Component {
144
149
setFocus={this.setFocus.bind(this)}
145
150
getListLength={this.getListLength.bind(this)}
146
151
listLength={this.state.listLength}
147
-
focusIndex={this.state.focusIndex}/>;
152
+
focusIndex={this.state.focusIndex}
153
+
addItem={this.props.addItem}
154
+
type={this.props.type}
155
+
/>;
148
156
}else{
149
157
returnnull;
150
158
}
@@ -181,6 +189,7 @@ class SLDSLookup extends React.Component {
0 commit comments