Skip to content

Commit

Permalink
fix(Input): removed hardcoded "text" in type prop (#102)
Browse files Browse the repository at this point in the history
Add type parameter from `input` properties -- type
  • Loading branch information
mikeyGlitz committed Apr 25, 2022
1 parent 8887f5f commit 7e6b53b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Input/Input.tsx
Expand Up @@ -26,6 +26,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
color,
dataTheme,
className,
type,
...props
},
ref
Expand All @@ -45,7 +46,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
<input
{...props}
ref={ref}
type="text"
type={type}
value={value}
placeholder={placeholder}
data-theme={dataTheme}
Expand Down

0 comments on commit 7e6b53b

Please sign in to comment.