File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -320,12 +320,16 @@ class SLDSLookup extends React.Component {
320
320
let componentClasses = this . state . selectedIndex === null ? "slds-lookup ignore-react-onclickoutside" :"slds-lookup ignore-react-onclickoutside slds-has-selection" ;
321
321
let inputContainerClasses = this . state . selectedIndex === null ? '' :' slds-input' ;
322
322
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
+ }
323
327
324
328
return (
325
329
< div className = { componentClasses } data-select = "multi" data-scope = "single" data-typeahead = "true" >
326
330
< section className = "slds-form-element" >
327
331
328
- < label className = "slds-form-element__label" htmlFor = { this . props . type + "Lookup" } > { this . props . label } </ label >
332
+ { inputLabel }
329
333
330
334
< div className = { "slds-lookup__control slds-input-has-icon slds-input-has-icon--right" + inputContainerClasses } style = { inputContainerStyle } >
331
335
{ this . state . selectedIndex !== null ? this . renderSelectedItem ( ) : null }
Original file line number Diff line number Diff line change 10
10
"prepublish" : " npm run compile" ,
11
11
"test" : " scripts/test --single-run" ,
12
12
"postinstall" : " node scripts/postinstall" ,
13
- "icons" : " node scripts/utility -icons"
13
+ "icons" : " node scripts/inline -icons"
14
14
},
15
15
"repository" : {
16
16
"type" : " git" ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments