Skip to content

Form fields named 'name' or 'id' break the form traversal.#43

Closed
jakefeasel wants to merge 1 commit intomaxatwork:masterfrom
jakefeasel:master
Closed

Form fields named 'name' or 'id' break the form traversal.#43
jakefeasel wants to merge 1 commit intomaxatwork:masterfrom
jakefeasel:master

Conversation

@jakefeasel
Copy link

This commit ensures that the property being checked is a string, rather than an object.

See this jsfiddle for demonstration of the problem:
http://jsfiddle.net/KJyCq/

And this jsfiddle (identical except using my modified version), showing it working:
http://jsfiddle.net/KJyCq/1/

@maxatwork
Copy link
Owner

The current objectToForm/js2form traversal handles literal name and id field names correctly, and I added a direct regression test in packages/js2form/test/js2form.test.ts. Closing this legacy PR as already covered in the modern codebase.

@maxatwork maxatwork closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants