sfdc-ui-lookup
sfdc-ui-lookup copied to clipboard
Lookup dropdown does not appear
Putting this here in cases anyone else runs into the same issue.
When using the Lookup in a div with class slds-modal__content, the dropdown does not appear.
<div class="slds-modal__content">
<c:Lookup aura:id="lookup" selection="{!v.selection}" onSearch="{!c.lookupSearch}" label="Search" />
</div>
I discovered that adding the following css fixes the issue.
.slds-modal__content{
overflow: initial;
}
Hi @mintotsai thanks for reporting that. I'll leave that issue open so that others can find it but I will flag it as a SLDS bug.
Hi pozil and mintotsai,
I went through the same kind of issue (dropdown did not appear).
My c:Lookup
was like
<dd class="slds-item_detail slds-truncate" >
<c:Lookup selection="{!v.selection}" ... />
</dd>
No bug here, since slds-truncate
is a overflow: hidden
, remove it was enough to solve the problem, but it would have been much harder to find without mintotsai comments.
Great job by the way !