Closed terencehoverter closed 6 years ago
This is interesting, but we're seeing this happen on Windows 10 on IE 11.165.17134.0.
okay, I don't think it has to do with Line 1981, rather Lines 1986-1993
For the lazy:
nebula.dom.window.on('storage', function(e){
jQuery('.wpcf7-textarea, .wpcf7-text').each(function(){
if ( !jQuery(this).hasClass('do-not-store') && !jQuery(this).hasClass('.wpcf7-captchar') ){
jQuery(this).val(localStorage.getItem('cf7_' + jQuery(this).attr('name'))).trigger('keyup');
}
});
});
More specifically this line here:
jQuery(this).val(localStorage.getItem('cf7_' + jQuery(this).attr('name'))).trigger('keyup');
Contextual Notes:
I can recreate this now in IE11. I can see the infinite loop on the storage
event. For reference, I have the same version at home (IE 11.165.17134.0 on Windows 10).
I'm not in love with this solution, but this isn't a flagship feature. This simply disables localstorage on IE11:
var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; //Check for IE11
if ( !jQuery('.wpcf7-form').length || isIE11 || jQuery('.ie').length ){
return false;
}
Commenting out this line seems to fix the issue for Contact Form 7 v5.0.2: https://github.com/chrisblakley/Nebula/blob/master/assets/js/nebula.js#L1981