Skip to content
This repository

ShowStopper - click on Form Fields adds hidden fields if 'name' attribute set #5593

Closed
jaxtrx opened this Issue · 5 comments

4 participants

jaxtrx marbin Todd Parker Gabriel "_|Nix|_" Schulhof
jaxtrx

http://jsfiddle.net/LdD2G/3/

View dom elements above form appear as field is clicked :

The first 2 hidden fields were created by jquery as I clicked on fields or fields gain focus type=text company name

Note if name attribute is removed, then hidden fields do not appear, however then form serialization can't be used.

Occurs in Chrome & Firefox, no other browsers were tested.

Thanks!!

marbin

I am seeing the same thing.
We noticed that hidden input elements are added when the value changes in a select.
I can reproduce it in Chrome 24 + Win7 on the demo page for forms:
http://jquerymobile.com/demos/1.3.0-rc.1/docs/forms/selects/
I change the values of the select with the name "select-choice-min" and inspect the element in the Chrome dev tool.
After a few changes, it looks like in the attached image.
hidden_fidlds

Todd Parker

We're looking at fix for this now. Thanks for the report.

Gabriel "_|Nix|_" Schulhof gabrielschulhof closed this issue from a commit
Gabriel "_|Nix|_" Schulhof gabrielschulhof Navigation: Append value of named button to form data if the form was…
… submitted by a click of that button without resorting to a hidden input. Fixes #5593 and #5590.
ae3484b
Gabriel "_|Nix|_" Schulhof
Collaborator

Please verify that this is fixed.

jaxtrx

Looks like the fix took care of it. I'm no longer seeing duplicated named hidden fields added.

Thanks for all the hard work and great product!

Charles

marbin

Looks alright here as well.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.