Open davidchengIC opened 6 years ago
@davidchengIC I'm also looking for the ability to capture the onchange event. Were you able to find a workaround? @kevinberonilla is there a workaround for this, or should an enhancement be submitted?
@mrichmon12 Unfortunately I couldn't find a workaround.
@davidchengIC I was able to work around this by creating a change event handler in my component for the value bound to the strike lookup. Hopefully this works in your situation as well.
<aura:handler name="change" value="{!v.myAccount}" action="{!c.myActionHandler}"/>
<c:strike_lookup
aura:id="myAccount"
label="Account"
object="Account"
searchField="Name"
placeholder="Select an Account"
iconName="standard:account"
subtitleField="Industry"
order="Name"
limit="5"
loadingMessage="Loading..."
errorMessage="Invalid input"
showRecentRecords="true"
value="{!v.myAccount}"/>
myActionHandler : function(component, event, helper) {
//do something
}
@mrichmon12 Thanks that works for me too!
I need to detect an
onchange
event when using thestrike_lookup
component so I've wrapped it in a<div>
, but it looks like the component does anevent.stopPropagation
so the event won't bubble up to the parent component.Is there any workaround for this, or any plans to enable onchange for strike_lookup?