You need to sign in to do that
Don't have an account?
Jorg_Janke
lightning:input onblur error: Something has gone wrong. Underlying raw object [object Object] does not support property: currentTarget
In a Lightning Component, I define an input with onchange or onblur - e.g.
<lightning:input name="timeHours" label="Hours" onblur="{!c.onTimeBlur}" />
in my controller there is:
onTimeBlur : function(component, event, helper) {
},
The result is:
Something has gone wrong. Underlying raw object [object Object] does not support property: currentTarget
Failing descriptor: {accorto$Time$controller$onTimeBlur}.
Please try again.
So it finds the javascript method but then fails.
Works fine for the <ui:input blur="{!c.onTimeBlur}" ..../>
<lightning:input name="timeHours" label="Hours" onblur="{!c.onTimeBlur}" />
in my controller there is:
onTimeBlur : function(component, event, helper) {
},
The result is:
Something has gone wrong. Underlying raw object [object Object] does not support property: currentTarget
Failing descriptor: {accorto$Time$controller$onTimeBlur}.
Please try again.
So it finds the javascript method but then fails.
Works fine for the <ui:input blur="{!c.onTimeBlur}" ..../>
Although lightning;input supports ONBLUR, it is BETA, So you can use <ui:input> or <force:input> or HTML <input> tags for creating input fields.
Try using them. Hope that Helps,
Regards,
Alsinan
All Answers
Although lightning;input supports ONBLUR, it is BETA, So you can use <ui:input> or <force:input> or HTML <input> tags for creating input fields.
Try using them. Hope that Helps,
Regards,
Alsinan