You can avoid this, suppessing the checking und use your own formatter and unformatter to return the original value.
The reason that you have a error when you enter a number with decimal separator “,” is that the javascript isNaN function work only with numbers that have decimal separator “.”.
Also you can define your own validator for your number.