Merge pull request #2847 from brkcvn/master

Condition added for number replace
This commit is contained in:
Burak Civan 2022-12-23 10:48:23 +03:00 committed by GitHub
commit 6cdaadfa92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -820,7 +820,10 @@ const app = new Vue({
if (newVal != '' && newVal.search('^(?=.*?[0-9])[0-9.,]+$') !== 0) {
this.form.discount = oldVal;
this.form.discount.replace(',', '.');
if (Number(newVal) == null) {
this.form.discount.replace(',', '.');
}
return;
}