File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1717 }
1818
1919 const handleMouseover = (menuItem : NavMenuItem ) => async (ev ) => {
20- if (activeRoute ) {
21- return ;
22- }
23-
2420 if (! itemHasHoverMenu (menuItem )) {
2521 return ;
2622 }
Original file line number Diff line number Diff line change 4040 style =' primary'
4141 menuItems ={menuItems }
4242 isMobile ={$isMobile }
43+ showHoverMenu ={! primaryRoute }
4344 >
4445 <svelte:fragment slot =" auth" >
4546 <AboutUsMenuItem />
5455 activeRoute ={secondaryRoute }
5556 style =' secondary'
5657 menuItems ={primaryRoute .children }
58+ showHoverMenu ={! secondaryRoute ?.children ?.length }
5759 />
5860 {/if }
5961
Original file line number Diff line number Diff line change 1010 export let activeRoutePath: NavMenuItem[] = [];
1111 export let activeRoute: NavMenuItem;
1212 export let isMobile: boolean = false ;
13+ export let showHoverMenu: boolean = true ;
1314
1415 let popupIsVisible: boolean;
1516 let hoveredElement: HTMLElement | undefined ;
3132 isPopupMenuActive ={popupIsVisible }
3233 style ={style }
3334 >
34- {#if ! activeRoute }
35+ {#if showHoverMenu }
3536 <HoverMenu
3637 activeRoute ={activeRoutePath [3 ] ?? activeRoutePath [2 ]}
3738 menuItems ={hoveredMenuItem ?.children }
You can’t perform that action at this time.
0 commit comments