From ec6419d0b70e64230ac3528afbb5d41f0b8bed2d Mon Sep 17 00:00:00 2001 From: Matei Stanca Date: Thu, 18 Jan 2024 19:56:17 -0500 Subject: [PATCH] offcanvas.history: Behaviour now attaches to body for reliability: The events still bubble up to it so no other changes are needed. See https://github.com/neurocracy/omnipedia/issues/46 --- javascript/offcanvas.history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/offcanvas.history.js b/javascript/offcanvas.history.js index 3b242f6..d694ab6 100644 --- a/javascript/offcanvas.history.js +++ b/javascript/offcanvas.history.js @@ -26,7 +26,7 @@ AmbientImpact.addComponent('OmnipediaSiteThemeOffcanvasHistory', function( this.addBehaviour( 'OmnipediaSiteThemeOffcanvasHistory', 'omnipedia-site-theme-offcanvas-history', - '.offcanvas-panel', + 'body', function(context, settings) { $(this).on('openOffcanvas.' + eventNamespace, function(event) {