grails-views
grails-views copied to clipboard
3.0.0.RC1 - f:all - Invalid markup is being generated for numeric fields. Commas are added to type number.
I have created a very basic grails 4.0.0.RC1 app to demonstrate the problem:
https://github.com/codeconsole/grailsnumberbug
package numberbug
class Bug {
int num = 123456789
static constraints = {
}
}
<f:all bean="bug"/>
creates an input field
<input type="number" name="num" value="123,456,789" required="" id="num">
which is not valid markup in either Chrome or Safari.
The default behavior should be to not put commas in numbers due to the fact it breaks everything