float preventing same decimal mark and th separator

This commit is contained in:
Yuri Kuznetsov
2023-04-07 17:38:06 +03:00
parent 76a9177c46
commit fe9b8dbba0
+8
View File
@@ -60,6 +60,14 @@ define('views/fields/float', ['views/fields/int'], function (Dep) {
else if (this.getConfig().has('decimalMark')) {
this.decimalMark = this.getConfig().get('decimalMark');
}
if (!this.decimalMark) {
this.decimalMark = '.';
}
if (this.decimalMark === this.thousandSeparator) {
this.thousandSeparator = '';
}
},
/**