I am using lightning:recordEditForm to display form for User object, below is my code. OOTO_Delegate__c is a self lookup field. Upon printing error in console I see
'{"message":"Cannot read property 'value' of undefined","detail":"","output":{},"error":{}}'
The field is also present on layout.
<lightning:recordEditForm
onload="{!c.handleLoad}"
onsuccess="{!c.handleSuccess}"
onerror="{!c.handleError}"
recordId="{!$SObjectType.CurrentUser.Id}"
objectApiName="User">
<lightning:messages />
<lightning:inputField fieldName="Currently_OOTO__c" aura:id="currentooo"/>
<lightning:inputField fieldName="OOTO_Delegate__c" />
<div class="slds-m-top_medium">
<lightning:button disabled="{!v.disabled}" variant="brand" type="submit" name="save" label="Save" />
</div>
</lightning:recordEditForm>
It is only happening with User object and custom Hierarichal relationship field. I tried with ManagerId and it was working fine but when I create another custom field and use that, same error appears. another thing to note is, error only appears if LC is opened in Utility bar