Warnings displayed when trying to call js controller methods - "Expression Statement is not assignment or call"

Issue #1177 resolved
Tony White created an issue

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)

  1. Log in to comment