Skip to content

Commit

Permalink
Fix initial filter on loading event page with anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Jan 20, 2025
1 parent fc4640e commit 83e5bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/event-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jQuery( function () {
const hash = window.location.hash.substring( 1 );

if ( hash !== '' ) {
jQuery( '.filter[data-filter=".' + hash + '"]' ).on( 'click' );
jQuery( 'button.filter[data-filter=".' + hash + '"]' ).click();
}
} );

Expand Down

0 comments on commit 83e5bea

Please sign in to comment.