Open mercmobily opened 8 years ago
I realise this is totally unpaid support etc. But I am totally stuck till I found a solution or a workaround. So... any help will be really, really welcome! (Even if it's a hint to direct me towards a workaround)
For what it's worth, I do have a workaround (I am monkey-patching iron-request
). Thank you for reopening https://github.com/PolymerElements/iron-ajax/issues/214 !
Looks like this is still not fixed.
For a simple workaround add a default value.
<paper-textarea value=""></paper-textarea>
Description
A lot of elements (for example
paper-textarea
, but alsopaper-dropdown-menu
) will haveundefined
as their value if the field is left untouched.The
serialize()
method will create a record like this:Which will make the method _
wwwFormUrlEncodePiece()
iniron-request
fail with a Javascript error:Expected outcome
Those fields shouldn't be included in
options.body
Actual outcome
Those fields are indeed included, making
iron-ajax
fail.Live Demo
I don't have a live demo, but the code is dead simple: