From d627d3f5a86dbc05a6a1e4ab5a27a52ac2752273 Mon Sep 17 00:00:00 2001 From: Wells Bunker Date: Fri, 26 Sep 2025 13:27:18 -0600 Subject: [PATCH] revert change --- .../components/ui/inputs/InputTextArea.tsx | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/apps/web/src/components/ui/inputs/InputTextArea.tsx b/apps/web/src/components/ui/inputs/InputTextArea.tsx index 47ff0e5b2..069cb3e3b 100644 --- a/apps/web/src/components/ui/inputs/InputTextArea.tsx +++ b/apps/web/src/components/ui/inputs/InputTextArea.tsx @@ -48,11 +48,7 @@ export const InputTextArea = React.forwardRef { const textareaRef = useRef(null); - <<<<<<< HEAD - useImperativeHandle( - ref, - () => - { + useImperativeHandle(ref, () => { if (!textareaRef.current) { return null as unknown as InputTextAreaRef; } @@ -65,28 +61,7 @@ export const InputTextArea = React.forwardRef - { - if (!textareaRef.current) { - return null as unknown as InputTextAreaRef; - } - return Object.assign(textareaRef.current, { - forceRecalculateHeight: () => { - if (textareaRef.current) { - // Force a recalculation by triggering an input event - const event = new Event('input', { bubbles: true }); - textareaRef.current.dispatchEvent(event); - } - }, - }); - } - , []) - >>>>>>> staging + }, []); const handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Enter') { @@ -119,4 +94,4 @@ export const InputTextArea = React.forwardRef