lightning:inputField does not respect disabled attribute when field type is Lookup
Last updated 2022-02-15 ·Reference W-5472789 ·Reported By 101 users
When a lightning:inputField component sets the attribute disabled=true, the input should become Read Only. However, when the lightning:inputField refers to a Lookup field, it does not become read only and can be edited even if it is disabled.
Create the following:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >
<lightning:spinner aura:id="spinner" variant="brand" size="large" class="slds-hide"/>
<lightning:inputField fieldName="Name" disabled="true" />
<lightning:inputField fieldName="AccountId" disabled="true" />
None at this time
Reported By (101)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.