Closed (fixed)
Project:
Webform
Version:
7.x-3.18
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2013 at 21:20 UTC
Updated:
27 Jun 2013 at 04:40 UTC
Jump to comment: Most recent file
I added a number field to my site where I want to collect a decimal number (specifically a dollar amount). However the default step="0" does not work in Chrome. I have no problems submitting in Firefox. Looking around it seems that Chrome expects step to be set to "any" if decimals should be allowed. I tested Firefox and it seems it also accepts "any" as a value for step.
I think there should be a check in the theme function that changes step to "any" if it's set to 0. I attached a patch that does this for me.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform-num-step-any-1927314-1.patch | 613 bytes | berenddeboer |
| webform-num-step.patch | 695 bytes | jnettik |
Comments
Comment #1
berenddeboer commentedI prefer a slightly different patch. As this currently breaks chrome, I've set the priority to major.
Comment #2
rooby commented#1 works for me.
Comment #3
quicksketchHi guys, this problem has been solved for some time by #1611772: Cannot create Number component that allows Decimal input that works in some browsers. It's fixed in the 3.19 release.