Skip to content

Comments

Fix so disabled controls are totally ignored from built up object model#37

Open
mcintyre321 wants to merge 1 commit intomaxatwork:masterfrom
mcintyre321:master
Open

Fix so disabled controls are totally ignored from built up object model#37
mcintyre321 wants to merge 1 commit intomaxatwork:masterfrom
mcintyre321:master

Conversation

@mcintyre321
Copy link

...put values, so shouldn't be included in results

#36

… input values, so shouldn't be included in results
@mcintyre321
Copy link
Author

Given a form containing

<input type="hidden" name="x" value="hello" />
<input type="hidden" name="x" value="hello" disabled="disabled" />

form2js will currently return a null value for x - disabled controls should be totally ignored and instead form2js should return {x:"hello"}

@lookfirst
Copy link
Contributor

Nice fix. I checked this into my fork.

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