Skip to content

Commit

Permalink
Add field type textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
gocreating committed Nov 7, 2016
1 parent c60e1f4 commit b80fdef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/components/utils/BsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ let BsFormField = ({
{text}
</p>
);
} else if (type === 'textarea') {
formControl = (
<textarea
className="form-control"
{...input}
{...rest}
/>
);
} else {
formControl = (
<input
Expand Down

0 comments on commit b80fdef

Please sign in to comment.