-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: return validated fields in DOM order #88
Comments
This is a cool idea. What do you think is the use case for this functionality? I think I would have to flag elements in the DOM by field in order to accomplish this. |
This is a real case scenario I'm facing: fields representing tree nodes. If the nodes get rearranged, the DOM gets properly updated according to the new tree structure, but the library fails to provide the proper order. |
Perhaps I didn't fully understand the issue at first glance. https://github.com/meteortemplates/forms/blob/master/src/module.js#L556 Right now we collect the DOM elements using |
That should work. According to jQuery specs, elements are returned in document order since version 1.3.2 ( http://blog.jquery.com/2009/02/20/jquery-1-3-2-released/ ) |
Hi @jonjamz ,
I've just noticed that if input fields are re-rendered in a different order with respect to the original one, then the validated data are returned still according to the previous DOM order.
Would it be possible (at least to have an option) to have the fields returned according to the DOM order at the time the action function is invoked? That is the order one would get by simply using jQuery $('.reactive-element').
Thank you for your attention
The text was updated successfully, but these errors were encountered: