I have the following component:
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader"
access="global" >
<input type="text" name="Name" class="slds-input" value="Test" onChange="{!c.doSomething}"/>
</aura:component>
Controller:
({
doSomething : function(component, event, helper) {
console.log('test');
}
})
When i change the value of the input, "doSomething" is not triggered. the html looks like this:
<div data-aura-rendered-by="420:0" class="flexipageComponent" data-aura-class="flexipageComponent">
<input class="slds-input" type="text" name="Name" data-aura-rendered-by="424:0">
</div>
looks like onChange is not even rendered, what am i doing wrong?
onchange
'c' is in small case, can you try that?onchange
in small case and it worked. Yes it was not rendered in html because lightning remove and minifies it into a seperate JS file