this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Possible fix for menus again

+27 -4
+27 -4
src/components/nav-menu.jsx
··· 209 209 </MenuLink> 210 210 )} 211 211 {lists?.length > 0 ? ( 212 - <SubMenu 212 + <SubMenu2 213 213 menuClassName="nav-submenu" 214 214 overflow="auto" 215 215 gap={-8} ··· 234 234 ))} 235 235 </> 236 236 )} 237 - </SubMenu> 237 + </SubMenu2> 238 238 ) : ( 239 239 <MenuLink to="/l"> 240 240 <Icon icon="list" size="l" /> ··· 244 244 <MenuLink to="/b"> 245 245 <Icon icon="bookmark" size="l" /> <span>Bookmarks</span> 246 246 </MenuLink> 247 - <SubMenu 247 + <SubMenu2 248 248 menuClassName="nav-submenu" 249 249 overflow="auto" 250 250 gap={-8} ··· 293 293 <Icon icon="block" size="l" /> 294 294 Blocked users&hellip; 295 295 </MenuItem>{' '} 296 - </SubMenu> 296 + </SubMenu2> 297 297 <MenuDivider /> 298 298 <MenuItem 299 299 onClick={() => { ··· 368 368 </section> 369 369 </ControlledMenu> 370 370 </> 371 + ); 372 + } 373 + 374 + function SubMenu2(props) { 375 + const menuRef = useRef(); 376 + return ( 377 + <SubMenu 378 + {...props} 379 + instanceRef={menuRef} 380 + // Test fix for bug; submenus not opening on Android 381 + itemProps={{ 382 + onPointerMove: (e) => { 383 + if (e.pointerType === 'touch') { 384 + menuRef.current?.openMenu?.(); 385 + } 386 + }, 387 + onPointerLeave: (e) => { 388 + if (e.pointerType === 'touch') { 389 + menuRef.current?.openMenu?.(); 390 + } 391 + }, 392 + }} 393 + /> 371 394 ); 372 395 } 373 396