Google rolled out an emergency security fix and now some of the JS behavior is not working as it was before. Anybody else having this problem?
This is one of the functions that is not working like it did before:
function disableButton(elButton) {
let elForm = elButton.closest(':has(\"form\")').find('form:visible');
elForm.on('afterValidate', function(e) {
let errors = elForm.find('.has-error').length;
if (errors>0) elButton.attr('disabled', false);
});
elButton.attr('disabled', true);
elForm.submit();
}