PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.83
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.83
51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 51.1.46 All 39 releases
← All changes | includes/widgets/Popup/Popup.php +7 -0 51.1.7651.1.83 View file →
@@ -717,8 +717,15 @@
717 717
718 718 const offCanvas = document.querySelector('." . esc_js($class_ID) . "');
719 719 const overlay = document.querySelector('." . esc_js($overlay_ID) . "');
720 720
721 + // With no template picked the widget prints a placeholder instead of
722 + // the panel markup, so these lookups come back empty. Bail out rather
723 + // than throwing on insertBefore and losing the handlers below.
724 + if (!offCanvas || !overlay) {
725 + return;
726 + }
727 +
721 728 // Moves all Popupes to right after the <body> opens
722 729 document.body.insertBefore(overlay, document.body.firstChild);
723 730 document.body.insertBefore(offCanvas, document.body.firstChild);
724 731