From 3d50d2619b07769e2134bb1bb9d4d0bacc1fea16 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Tue, 2 Jun 2026 17:32:34 -0400 Subject: [PATCH] fix: Avoid project placeholder shadowing --- client/src/hooks/Input/useTextarea.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/hooks/Input/useTextarea.ts b/client/src/hooks/Input/useTextarea.ts index b0156ba201..fe65208ba0 100644 --- a/client/src/hooks/Input/useTextarea.ts +++ b/client/src/hooks/Input/useTextarea.ts @@ -111,17 +111,17 @@ export default function useTextarea({ })}`; }; - const placeholder = getPlaceholderText(); + const placeholderText = getPlaceholderText(); - if (textAreaRef.current?.getAttribute('placeholder') === placeholder) { + if (textAreaRef.current?.getAttribute('placeholder') === placeholderText) { return; } const setPlaceholder = () => { - const placeholder = getPlaceholderText(); + const placeholderText = getPlaceholderText(); - if (textAreaRef.current?.getAttribute('placeholder') !== placeholder) { - textAreaRef.current?.setAttribute('placeholder', placeholder); + if (textAreaRef.current?.getAttribute('placeholder') !== placeholderText) { + textAreaRef.current?.setAttribute('placeholder', placeholderText); forceResize(textAreaRef.current); } };