Since a sandbox has been upgraded to Summer 18, I've been having a problem with a lightning:textarea showing undefined within it's box but only when I have used an apex controller to return the sobject fields.
Here is an example component in a Summer 18 org.
And this is how it renders in a Spring 18 org.
I should note that all components are v42 in both orgs, not v43.
Here's an example Component:
<aura:component controller="TestLightningTextarea" implements="flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes,force:hasRecordId">
<aura:attribute type="Contact" name="contRecord" access="private" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<lightning:textarea label="Textarea" value="{!v.contRecord.Description}" />
<lightning:input label="Input" value="{!v.contRecord.Description}" />
</aura:component>
Component Controller:
doInit : function(component, event, helper) {
var getContactAct = component.get('c.getContact');
getContactAct.setParams({'contactId' : component.get('v.recordId')});
getContactAct.setCallback(this, function(response){
component.set('v.contRecord', response.getReturnValue());
console.log(JSON.parse(JSON.stringify(response.getReturnValue())));
}, 'SUCCESS');
$A.enqueueAction(getContactAct);
},
Apex Controller:
public with sharing class TestLightningTextarea {
@AuraEnabled
public static Contact getContact(Id contactId) {
return [SELECT Id, Description FROM Contact WHERE Id = :contactId];
}
}
The controller queries the field, but it's not included in the payload to the lightning controller because it's empty.
Has anyone else seen this, and is there a way I can report this to Salesforce easily, given the customer I'm working with doesn't have Premier Support (thus no development support)?