From 678da97976fbc4128fa3728b7fb818cefb4f9017 Mon Sep 17 00:00:00 2001 From: keval shah Date: Fri, 10 Apr 2026 12:02:33 -0400 Subject: [PATCH] fix: allow spacebar in chat input textarea (#12612) fix: allow spacebar in chat input textarea --- .../chat-view/chat-input/components/input-wrapper.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx b/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx index 5b2a38a0c2..1895c359e0 100644 --- a/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx +++ b/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx @@ -68,6 +68,11 @@ const InputWrapper = ({ }; const onKeyDown = (e: React.KeyboardEvent) => { + const target = e.target as HTMLElement; + // Don't handle keyboard events that originate from the textarea + if (target.closest("textarea")) { + return; + } if (e.key !== "Enter" && e.key !== " ") { return; }