diff --git a/src/components/nav-menu.jsx b/src/components/nav-menu.jsx index 9952d0dd..e5659838 100644 --- a/src/components/nav-menu.jsx +++ b/src/components/nav-menu.jsx @@ -209,7 +209,7 @@ function NavMenu(props) { )} {lists?.length > 0 ? ( - )} - + ) : ( @@ -244,7 +244,7 @@ function NavMenu(props) { Bookmarks - Blocked users… {' '} - + { @@ -371,4 +371,27 @@ function NavMenu(props) { ); } +function SubMenu2(props) { + const menuRef = useRef(); + return ( + { + if (e.pointerType === 'touch') { + menuRef.current?.openMenu?.(); + } + }, + onPointerLeave: (e) => { + if (e.pointerType === 'touch') { + menuRef.current?.openMenu?.(); + } + }, + }} + /> + ); +} + export default memo(NavMenu);