React: Feature Request: <input type="textarea" .../>

Created on 17 May 2020  路  3Comments  路  Source: facebook/react

I'm delighted that you made it so <textarea> can take value= and defaultValue=... but what I really want is <input type="textarea">.

That would make this use case more fun:

<input type={field.type} ...

No explanation necessary if you decide not to implement this. I've already made a wrapper class to solve my problem at hand.

Unconfirmed

Most helpful comment

I think React follow the HTML spec. regarding the input types.
https://html.spec.whatwg.org/multipage/input.html#attr-input-type

There is no such thing as <input type="textarea"

All 3 comments

I think React follow the HTML spec. regarding the input types.
https://html.spec.whatwg.org/multipage/input.html#attr-input-type

There is no such thing as <input type="textarea"

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

As I pointed out in my original request, <textarea> doesn't follow the HTML spec, instead it does something that makes more sense. Why not do the thing that makes a lot of sense and use <input type="textarea">?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sophiebits picture sophiebits  路  107Comments

acdlite picture acdlite  路  83Comments

iammerrick picture iammerrick  路  94Comments

wohali picture wohali  路  128Comments

sebmarkbage picture sebmarkbage  路  136Comments