-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textarea does not render as a textarea #1237
Comments
Are you referring to input of type="textarea" or using textarea tag itself? |
Any advice on how I might use the Formik 'Field' with the textarea component please? |
|
textarea is a tag and not an input type |
Thanks Jared. I'll give it go. |
Do you have an example of using textarea in a custom component, rather than the component string literal? |
@tbarho |
@jtart @jaredpalmer There is still a bug with this, so it might want to be reopened, reproduced here: https://codesandbox.io/s/vmq5pxj0ry (open the console before you try) If you hit enter in the text area, 2 errors are thrown:
I'm just getting started with Formik, so I might be a little noob to patch that. Update It doesn't seem to break submission, however. |
@tbarho aren't you using lastpass chrome extension? I had same errors but the link helps.. |
Yeah, definitely that. Thanks! |
This worked for me. set the component to "textarea" and you can define the number of rows using rows attribute
|
Thanks!!! |
this works. 👍 |
I got same problem. |
🐛 Bug report
Current Behavior
If I try to use a Field of type textarea it renders as a plain single line input object, ignoring rows and no drag handle.
Expected behavior
Textarea fields should be rendered as multiline textarea field with drag handle
Reproducible example
Use the formik sandbox (https://codesandbox.io/s/zKrK5YLDZ) and change the email field to type textarea.
Your environment
The text was updated successfully, but these errors were encountered: