Gaston Mosteiro
05/29/2024, 2:17 PMCheckout.addToViewEventsDefinition('PaymentInstrument.CreditCard.Edit.View','blur [data-action="blurCardNumber"]', function (e) {
console.log('blurCardNumber', e)
debugger
});
It doesn't throw any errors, but it also doesn't work.
However, if I extend the events object, it executes correctly:
//'PaymentInstrument.CreditCard.Edit.View'
PaymentInstrumentCreditCardEditView.prototype.events = _.extend({},
PaymentInstrumentCreditCardEditView.prototype.events,
{
'blur [data-action="blurCardNumber"]': 'blurCardNumber',
}
)
Any idea why this might be happening??Gaston Mosteiro
05/30/2024, 5:04 PMSteve Goldberg
05/30/2024, 5:06 PMGaston Mosteiro
05/30/2024, 5:08 PMSteve Goldberg
05/30/2024, 5:42 PMGaston Mosteiro
05/30/2024, 6:24 PMSteve Goldberg
05/31/2024, 9:32 AMGaston Mosteiro
05/31/2024, 12:36 PMSteve Goldberg
05/31/2024, 12:41 PMSteve Goldberg
05/31/2024, 5:01 PMtexmc
06/06/2024, 9:49 PMtexmc
06/06/2024, 9:54 PMSteve Goldberg
06/07/2024, 8:58 AM