Skip to content

Commit

Permalink
Merge pull request #37 from ariaieboy/36-number-zero-not-getting-mask…
Browse files Browse the repository at this point in the history
…ed-on-initial-request

fix number zero bug on initial request
  • Loading branch information
ariaieboy authored Jun 5, 2024
2 parents f286170 + f571181 commit 75dc558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/currency-mask.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 75dc558

Please sign in to comment.