Skip to content

Commit dc0fe21

Browse files
authored
Fix initial filter on loading event page with anchor (#797)
1 parent fc4640e commit dc0fe21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/event-filter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jQuery( function () {
2222
const hash = window.location.hash.substring( 1 );
2323

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

0 commit comments

Comments
 (0)