apache / apache/grails-core

3.0.0.RC1 - f:all - Invalid markup is being generated for numeric fields. Commas are added to type number.

Open
#14,220 5 comments 0 reactions 1 assignee Claimed by @rvanderwerf View on GitHub
relates-to: grails-fields
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

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 = {
}
}
```

``

creates an input field
``

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.