PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.87
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.87
51.1.87 51.1.86 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 All 41 releases
← All changes | includes/widgets/Off_Canvas_Content/Off_Canvas_Content.php +7 -0 51.1.76 → 51.1.87 View file →
@@ -638,8 +638,15 @@
638 638
639 639 const offCanvas = document.querySelector('." . esc_js($class_ID) . "');
640 640 const overlay = document.querySelector('." . esc_js($overlay_ID) . "');
641 641
642 + // With no template picked the widget prints a placeholder instead of
643 + // the panel markup, so these lookups come back empty. Bail out rather
644 + // than throwing on insertBefore and losing the handlers below.
645 + if (!offCanvas || !overlay) {
646 + return;
647 + }
648 +
642 649 // Moves all off-canvases to right after the <body> opens
643 650 document.body.insertBefore(overlay, document.body.firstChild);
644 651 document.body.insertBefore(offCanvas, document.body.firstChild);
645 652