grails-views icon indicating copy to clipboard operation
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.

Open codeconsole opened this issue 6 years ago • 5 comments

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

codeconsole avatar Apr 20 '19 17:04 codeconsole