From 50d6b7a6f862ed3fafd07b9e13a8be3b513b1c23 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 22 May 2025 15:24:58 +0530 Subject: [PATCH] (fix/input) placeholder --- frontend/src/components/Input.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index 1278b813..474036ba 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -36,6 +36,8 @@ const Input = ({ const inputRef = useRef(null); + const hasValue = value !== undefined && value !== null && value !== ''; + return (
{placeholder} {required && (