Commit 9724db3
fix(datagrid-web): harden whitespace guard and locale-tag stripping
Number(" ") === 0, so the old value !== "" check silently exported
whitespace strings as 0. Use value.trim() !== "" instead.
hasTimeComponent matched "S" in locale tags like [$-en-US], causing
date-only formats to incorrectly retain a time component. Strip
bracket-delimited tokens before testing.
Also documents that Mendix numeric attributes are always Big — the
plain-number branch was not accidentally omitted.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6ae2aea commit 9724db3
1 file changed
Lines changed: 5 additions & 2 deletions
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
0 commit comments