Skip to content

Commit

Permalink
fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy committed May 8, 2024
1 parent c46b442 commit 9350ce8
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 @@ -25,7 +25,7 @@
\$el.addEventListener('blur',(event)=>this.updateInput());
},
updateMasked(){
if(typeof this.input === 'number'){
if(typeof Number(this.input) === 'number'){
\$el.value = this.input?.toString().replaceAll('.','$decimalSeparator');
\$el.dispatchEvent(new Event('input'));
}
Expand Down

0 comments on commit 9350ce8

Please sign in to comment.