Skip to content

Commit 37670fc

Browse files
committed
Merge branch 'master' into notifications
2 parents 70930cd + ebc8c32 commit 37670fc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

components/SLDSLookup/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,16 @@ class SLDSLookup extends React.Component {
320320
let componentClasses = this.state.selectedIndex === null ? "slds-lookup ignore-react-onclickoutside":"slds-lookup ignore-react-onclickoutside slds-has-selection";
321321
let inputContainerClasses = this.state.selectedIndex === null ? '':' slds-input';
322322
let inputContainerStyle = this.state.selectedIndex === null ? {} : {padding: '5px'};
323+
let inputLabel;
324+
if (this.props.label) {
325+
inputLabel = <label className="slds-form-element__label" htmlFor={this.props.type + "Lookup"}>{this.props.label}</label>
326+
}
323327

324328
return (
325329
<div className={componentClasses} data-select="multi" data-scope="single" data-typeahead="true">
326330
<section className="slds-form-element">
327331

328-
<label className="slds-form-element__label" htmlFor={this.props.type + "Lookup"}>{this.props.label}</label>
332+
{inputLabel}
329333

330334
<div className={"slds-lookup__control slds-input-has-icon slds-input-has-icon--right" + inputContainerClasses} style={inputContainerStyle}>
331335
{ this.state.selectedIndex !== null ? this.renderSelectedItem() : null }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepublish": "npm run compile",
1111
"test": "scripts/test --single-run",
1212
"postinstall": "node scripts/postinstall",
13-
"icons": "node scripts/utility-icons"
13+
"icons": "node scripts/inline-icons"
1414
},
1515
"repository": {
1616
"type": "git",
File renamed without changes.

0 commit comments

Comments
 (0)