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 />
5354 activeRoute ={secondaryRoute }
5455 style =' secondary'
5556 menuItems ={primaryRoute .children }
57+ showHoverMenu ={! secondaryRoute ?.children ?.length }
5658 />
5759 {/if }
5860
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 menuItems ={hoveredMenuItem ?.children }
3738 mainDescription ={hoveredMenuItem ?.description }
You can’t perform that action at this time.
0 commit comments