From f571181facb264d2b3cc49a9c3abbd3ce09c3d46 Mon Sep 17 00:00:00 2001 From: AriaieBOY Date: Wed, 5 Jun 2024 20:11:29 +0330 Subject: [PATCH] fix number zero bug on initial request --- resources/views/currency-mask.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/currency-mask.blade.php b/resources/views/currency-mask.blade.php index 3167d85..9e305cb 100644 --- a/resources/views/currency-mask.blade.php +++ b/resources/views/currency-mask.blade.php @@ -31,7 +31,7 @@ }, updateMasked(value, oldValue){ if(this.input !== undefined && typeof Number(this.input) === 'number') { - if(this.masked?.replaceAll('$thousandSeparator','').replaceAll('$decimalSeparator','.') != this.input){ + if(this.masked?.replaceAll('$thousandSeparator','').replaceAll('$decimalSeparator','.') !== this.input){ this.masked = this.input?.toString().replaceAll('.','$decimalSeparator'); } }