Skip to content

Commit

Permalink
offcanvas.immerse: Behaviour now attaches to body for reliability:
Browse files Browse the repository at this point in the history
The events still bubble up to it so no other changes are needed.

See neurocracy/omnipedia#46
  • Loading branch information
Ambient-Impact committed Jan 19, 2024
1 parent ec6419d commit 341c7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/offcanvas.immerse.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ AmbientImpact.addComponent('OmnipediaSiteThemeOffcanvasImmerse', function(
this.addBehaviour(
'OmnipediaSiteThemeOffcanvasImmerse',
'omnipedia-site-theme-offcanvas-immerse',
'.offcanvas-panel',
'body',
function(context, settings) {

$(this).on('openOffcanvas.' + eventNamespace, function(event) {
Expand Down

0 comments on commit 341c7aa

Please sign in to comment.