I am trying to create a button which will update a field value to null (RESET it). However, it's not working and not even giving any error. So when I click on the button, nothing happens.
lc.cmp:
<aura:attribute name="myObj" type="Account" default="{'SObject':'Account'}"/>
<lightning:input type="text" name="accountPhn" label="Enter Account Phone" value="{!v.myObj.Name}"/>
<lightning:button label="Reset" onclick="{!c.resetMe}"/>
lc.js:
resetMe : function(component, event, helper) {
//alert("Called");
component.set("v.accountPhn","");
}
Appreciate help around this.