We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc0d4b5 commit 6d23382Copy full SHA for 6d23382
1 file changed
src/components/BorderedApp/BorderedAppMenu/BorderedAppMenu.tsx
@@ -53,6 +53,11 @@ function BorderedAppMenuItem({
53
if (hoverRevealDelayRef.current) {
54
clearTimeout(hoverRevealDelayRef.current);
55
}
56
+ if (open) {
57
+ hoverRevealDelayRef.current = setTimeout(() => {
58
+ if (open) setOpen(false);
59
+ });
60
+ }
61
62
63
function handleOnClick(e: React.MouseEvent<HTMLDivElement>) {
@@ -119,7 +124,6 @@ function BorderedAppMenu({ title, items }: BorderedAppMenuProps) {
119
124
const [open, setOpen] = useState<boolean>(false);
120
125
const elementRef = useRef<HTMLDivElement>(null);
121
126
const position = useRef<{ x: number; y: number }>({ x: 0, y: 0 });
122
- const settings = useSystemSettings();
123
127
128
useEffect(() => {
129
const rect = elementRef.current?.getBoundingClientRect();
0 commit comments