Maximum call stack size exceeded on radio change event
With the following radio select field with a change event:
{
"registrationYears": {
"type": "text",
"label": "Register and Renew LEI for Multiple Years",
"default": "3",
"radios": true,
"required": true
"invalid": "LEI renewal year(s) is required",
"options": {
"url": "api/getLEIPricing/registration"
},
"change": "updatePromoCode(form, 'lei_registration');",
}
}
when the value changes we get this error:
Uncaught RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at Function.fa.matchesSelector (jquery.min.js:2)
at Function.n.filter (jquery.min.js:2)
at z (jquery.min.js:2)
at n.fn.init.is (jquery.min.js:2)
at _input_event_update (interact.js:516)
at HTMLInputElement.<anonymous> (interact.js:823)
at HTMLInputElement.dispatch (jquery.min.js:3)
at HTMLInputElement.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:4)
This error appears to be specific to the radio
type because if we set "radio": false
so that the field is rendered as a select droplist, everything works correctly.