Skip to content

Commit f38e121

Browse files
authored
Merge pull request #180 from codegouvfr/fix/input-date-icon
fix: remove duplicate icon when input type date
2 parents eef909d + fee5f95 commit f38e121

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Input.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const Input = memo(
7474
hintText,
7575
hideLabel,
7676
disabled = false,
77-
iconId: iconId_props,
77+
iconId,
7878
classes = {},
7979
style,
8080
state = "default",
@@ -161,10 +161,6 @@ export const Input = memo(
161161
/>
162162
);
163163

164-
const iconId =
165-
iconId_props ??
166-
(nativeInputProps?.type === "date" ? "ri-calendar-line" : undefined);
167-
168164
return iconId === undefined ? (
169165
nativeInputOrTextArea
170166
) : (

0 commit comments

Comments
 (0)