Open ghost opened 6 years ago
Technically you can still do this today, using paper-input-container
and an iron-input
directly. I agree that this element should be refactored, but doing so is an enormous breaking change -- and while doing the refactor, a lot of the features in this element should get rewritten/refactored.
The team is still figuring out how to best rewrite the elements in a pure 2.0 fashion that's more maintainable, faster and efficient than what we have currently -- stay tuned!
Do you have any plans to make
paper-input
(andpaper-checkbox
and other inputs) withdecorator-pattern
? This would solve all of the below issues?Now using paper inputs and forms is too complicated. Here's a few things which bothers me:
paper-input
you need to useiron-form
iron-form
doesn't work withinput type="file"
iron-form
has a lot of code which mainly serialize form data to send it .. by ajax perhpas it would be better to allow use oldform-submit
form-submit
is used in internals by coping fields to redundant form I did it a few times in my element and it's bad imhoiron-form
where he/she could use the platform's native form if onlypaper-input
were made withdecorator-pattern
To balance my complaints I want to write that I like Polymer much, especially the idea of:
so great job :)
Perhaps it's not the best place to raise this issue, but i didn't have better idea.