From de2ddfd2b8d46555e2191a940578076872985a5d Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 6 Jan 2025 20:18:27 +0530 Subject: [PATCH] fix: missing dropdown --- src/components/atoms/canvas.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 7c216733..8fd4f791 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -155,7 +155,7 @@ export interface Coordinates { const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => { const canvasRef = useRef(null); const { socket } = useSocketStore(); - const { setLastAction } = useGlobalInfoStore(); + const { setLastAction, lastAction } = useGlobalInfoStore(); const { getText, getList } = useActionContext(); const scheduler = useRef(new RAFScheduler()); @@ -345,6 +345,17 @@ const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => { })} /> )} + {state.dropdownInfo && ( + dispatch({ + type: 'BATCH_UPDATE', + payload: { dropdownInfo: null } + })} + /> + )} {state.timePickerInfo && (