Skip to content

Commit

Permalink
Merge pull request liferay#3638 from matuzalemsteles/pr-3608
Browse files Browse the repository at this point in the history
fix(@clayui/form): Makes ClayInput's `type` property has a value `text` by default
  • Loading branch information
matuzalemsteles authored Aug 21, 2020
2 parents 98e6136 + 4e9edca commit 1dcae06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`ClayAutocomplete renders DropDown with alignment with container 1`] = `
<div>
<input
class="form-control"
type="text"
/>
</div>
<div>
Expand All @@ -42,6 +43,7 @@ exports[`ClayAutocomplete renders Input with classNames when loading for true 1`
<div>
<input
class="form-control input-group-inset input-group-inset-after"
type="text"
/>
</div>
`;
Expand Down
2 changes: 2 additions & 0 deletions packages/clay-form/src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const ClayInput = React.forwardRef<HTMLInputElement, IProps>(
insetAfter,
insetBefore,
sizing,
type = 'text',
...otherProps
}: IProps,
ref
Expand All @@ -198,6 +199,7 @@ const ClayInput = React.forwardRef<HTMLInputElement, IProps>(
['input-group-inset-before']: insetBefore,
})}
ref={ref}
type={type}
/>
)
);
Expand Down

0 comments on commit 1dcae06

Please sign in to comment.