- changed status to resolved
Warnings displayed when trying to call js controller methods - "Expression Statement is not assignment or call"
Issue #1177
resolved
Warning displayed: "Expression Statement is not assignment or call" when calling a method from the controller js from onchange and onclick
<lightning:input aura:id="lotOnPlanRDO" type="radio"
label="Lot on Plan search"
name="propertyAddress"
checked="{!and(v.formData.propertyAddressSelected == false, v.formData.propertyAddressSelected != null)}"
onchange="{!c.onOptionChange}"/>
<lightning:recordEditForm
aura:id="newRecord"
onsubmit="{!c.saveRecord}"
onload="{!c.handleLoad}"
onsuccess="{!c.handleSuccess}"
onerror="{!c.getError}"
objectApiName="Case">
...
</lightning:recordEditForm>
...
With the lightning record form all but onsuccess have the warning
Comments (3)
-
repo owner -
repo owner - changed component to Lightning (Aura)
-
repo owner - changed component to Aura
- Log in to comment
Prospective fix delivered in 2.0.4.3 and 1.8.4.2.