Skip to content

Fixes ISSUE-43483: Float number fields invalidated if there are invalid chars

Previously float number fields were not invalidated correctly if there were characters after a digit. Number is used now instead of parseFloat, as it correctly generates a NaN when invalid characters are parsed.

It is the recommended way to do it by Mozilla team. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat

Merge request reports