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.
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">
?
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"