Skip to content

Commit

Permalink
fix: accept all input types for the input component's type prop
Browse files Browse the repository at this point in the history
This makes working with conform smoother, because that library
can use all valid input types.

Without this we get a type error, because our EDS list was
incomplete.
  • Loading branch information
ahuth committed Jun 3, 2023
1 parent 201c95f commit 77d33a1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,7 @@ export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
/**
* HTML type attribute, allowing switching between text, password, and other HTML5 input field types
*/
type?:
| 'text'
| 'password'
| 'datetime'
| 'datetime-local'
| 'date'
| 'month'
| 'time'
| 'week'
| 'number'
| 'email'
| 'url'
| 'search'
| 'tel';
type?: React.HTMLInputTypeAttribute;
/**
* The value of the input
*/
Expand Down

0 comments on commit 77d33a1

Please sign in to comment.