Changeset 55124
- Timestamp:
- 01/24/2023 12:56:13 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js
r52213 r55124 173 173 * @since Twenty Twenty-One 1.1 174 174 */ 175 document. addEventListener( 'click', function( event ) {175 document.getElementById( 'site-navigation' ).addEventListener( 'click', function( event ) { 176 176 // If target onclick is <a> with # within the href attribute 177 if ( event.target.hash && event.target.hash.includes( '#' )) {177 if ( event.target.hash ) { 178 178 wrapper.classList.remove( id + '-navigation-open', 'lock-scrolling' ); 179 179 twentytwentyoneToggleAriaExpanded( mobileButton );
Note: See TracChangeset
for help on using the changeset viewer.