File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -582,7 +582,8 @@ This is a fully client-side application. Your content never leaves your browser
582582 item . appendChild ( titleSpan ) ;
583583 item . appendChild ( menuBtn ) ;
584584
585- item . addEventListener ( 'click' , function ( ) {
585+ item . addEventListener ( 'click' , function ( e ) {
586+ if ( e . target . closest ( '.tab-menu-btn' ) ) return ;
586587 switchTab ( tab . id ) ;
587588 } ) ;
588589
@@ -706,7 +707,8 @@ This is a fully client-side application. Your content never leaves your browser
706707 item . appendChild ( titleSpan ) ;
707708 item . appendChild ( menuBtn ) ;
708709
709- item . addEventListener ( 'click' , function ( ) {
710+ item . addEventListener ( 'click' , function ( e ) {
711+ if ( e . target . closest ( '.tab-menu-btn' ) ) return ;
710712 switchTab ( tab . id ) ;
711713 closeMobileMenu ( ) ;
712714 } ) ;
Original file line number Diff line number Diff line change @@ -582,7 +582,8 @@ This is a fully client-side application. Your content never leaves your browser
582582 item . appendChild ( titleSpan ) ;
583583 item . appendChild ( menuBtn ) ;
584584
585- item . addEventListener ( 'click' , function ( ) {
585+ item . addEventListener ( 'click' , function ( e ) {
586+ if ( e . target . closest ( '.tab-menu-btn' ) ) return ;
586587 switchTab ( tab . id ) ;
587588 } ) ;
588589
@@ -706,7 +707,8 @@ This is a fully client-side application. Your content never leaves your browser
706707 item . appendChild ( titleSpan ) ;
707708 item . appendChild ( menuBtn ) ;
708709
709- item . addEventListener ( 'click' , function ( ) {
710+ item . addEventListener ( 'click' , function ( e ) {
711+ if ( e . target . closest ( '.tab-menu-btn' ) ) return ;
710712 switchTab ( tab . id ) ;
711713 closeMobileMenu ( ) ;
712714 } ) ;
You can’t perform that action at this time.
0 commit comments