Skip to content

Commit f6be16b

Browse files
author
David Brainer-Banker
committed
Add sods-is-open to Lookup
1 parent 4f388a3 commit f6be16b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/lookup/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class Lookup extends React.Component {
263263
this.setState({
264264
isOpen: false,
265265
focusIndex: null,
266-
currentFocus: null,
266+
currentFocus: null
267267
});
268268
}
269269

@@ -278,7 +278,7 @@ class Lookup extends React.Component {
278278
this.setState({
279279
isOpen: false,
280280
focusIndex: null,
281-
currentFocus: null,
281+
currentFocus: null
282282
});
283283
}
284284

@@ -487,6 +487,7 @@ class Lookup extends React.Component {
487487
getClassName(){
488488
return cx(this.props.className, 'slds-lookup', {
489489
'slds-has-selection': this.isSelected(),
490+
'slds-is-open': this.state.isOpen
490491
});
491492
}
492493

stories/lookup/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const DemoLookup = React.createClass({
2222
return (
2323
<Lookup
2424
{...this.props}
25+
modal={false}
2526
onChange={action('change')}
2627
onSelect={this.handleSelect}
2728
options={this.state.options}

0 commit comments

Comments
 (0)