Home > Blockchain >  Chrome 105.0.5195.102 breaks PHP YII application
Chrome 105.0.5195.102 breaks PHP YII application

Time:09-13

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. It disables the button but the form is never submitted.

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();
}

CodePudding user response:

I try this function and it's work. This form is yii2 ActiveForm. My Chrome version: Version 105.0.5195.102 (Official Build) (x86_64) (OSX)

I try

CodePudding user response:

I have a new JavaScript problem since 105.0.5195.102 (this is on production; that JavaScript code is stable / not been changed for months)

$(".MyTableClass").not(':has("thead")').each(function() ...

This is used to detect if there is NO <thead> on a <table> with . Since Chrome v=105 that is now triggering all over the place, (all the TABLES do have a THEAD element)

$(".MyTableClass").not(':has("thead")').length

v=104.0.5112.80 = 0 (Correct)
v=105.0.5195.102 = 1 (Incorrect)

I have not been able to reproduce this with a trivial example (although I haven't tried very hard)

  • Related