move menu anchor

This commit is contained in:
Gigiaj 2025-06-18 01:13:33 -05:00
parent 868e4a8a90
commit 6c6fd89911

View file

@ -430,8 +430,6 @@ function SpaceTab({
const dropState = useDropTarget(spaceDraggable, targetRef); const dropState = useDropTarget(spaceDraggable, targetRef);
const dropType = dropState?.type; const dropType = dropState?.type;
const [menuAnchor, setMenuAnchor] = useState<RectCords>();
const handleContextMenu: MouseEventHandler<HTMLButtonElement> = (evt) => { const handleContextMenu: MouseEventHandler<HTMLButtonElement> = (evt) => {
evt.preventDefault(); evt.preventDefault();
const cords = evt.currentTarget.getBoundingClientRect(); const cords = evt.currentTarget.getBoundingClientRect();