I'm trying to use force:inputField component for lookup fields in a lightning component. But event though lookup field shows up correct, it does not render correct in an html table. My html component is below. Why might be the problem?

enter image description here

<aura:component controller="AccountApexController">
    <aura:attribute name="myAcc" type="Account" default="{ sobjectType: 'Account' }" />
            <table class="slds-table" width="100%">

                        <td><force:inputField aura:id="myAcc" value="{!v.myAccount.TestField__c}" /></td>

1 Answer 1


I've found the problem. It was lightning design system's slds-table tag. When I removed it input field rendered just fine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .