From fee5f95660729fd72040d222f545d6d57dc3e205 Mon Sep 17 00:00:00 2001 From: Lilian Saget-Lethias Date: Wed, 6 Sep 2023 15:57:16 +0200 Subject: [PATCH] fix: remove duplicate icon when input type date --- src/Input.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Input.tsx b/src/Input.tsx index e65429a42..c2e09c5a5 100644 --- a/src/Input.tsx +++ b/src/Input.tsx @@ -74,7 +74,7 @@ export const Input = memo( hintText, hideLabel, disabled = false, - iconId: iconId_props, + iconId, classes = {}, style, state = "default", @@ -161,10 +161,6 @@ export const Input = memo( /> ); - const iconId = - iconId_props ?? - (nativeInputProps?.type === "date" ? "ri-calendar-line" : undefined); - return iconId === undefined ? ( nativeInputOrTextArea ) : (