Skip to content

Commit

Permalink
offcanvas.history: 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 81f509e commit ec6419d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/offcanvas.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ec6419d

Please sign in to comment.