Elementor Youtube Widget causes Complianz to Throw Javascript Error
-
On a page the contains the Elementor YouTube widget, if the user has not accepted Marketing cookies, the console shows the following error:
Uncaught TypeError: Cannot read property ‘runReadyTrigger’ of undefined
This refers to the following code block added by Complianz:
jQuery(document).ready(function ($) { $(document).on("cmplzRunAfterAllScripts", cmplz_elementor_fire_initOnReadyComponents); function cmplz_elementor_fire_initOnReadyComponents() { $('[data-cmplz-elementor-settings]').each(function (i, obj) { if ( $(this).hasClass('cmplz-activated') ) return; $(this).addClass('cmplz-activated' ); $(this).data('settings', $(this).data('cmplz-elementor-settings')); var blockedContentContainer = $(this); blockedContentContainer.animate({"background-image": "url('')"}, 400, function () { //remove the added classes var cssIndex = blockedContentContainer.data('placeholderClassIndex'); blockedContentContainer.removeClass('cmplz-blocked-content-container'); blockedContentContainer.removeClass('cmplz-placeholder-' + cssIndex); }); elementorFrontend.elementsHandler.runReadyTrigger( $(this) ); }); } })
specifically, the error is thrown on this line
elementorFrontend.elementsHandler.runReadyTrigger( $(this) );
I guess that Youtube failing to load is expected behaviour if cookies are not accepted? But the error message suggests an unanticipated error condition so I thought I should report it in case it indicates incorrect behaviour by the plugin.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Elementor Youtube Widget causes Complianz to Throw Javascript Error’ is closed to new replies.