Skip to content

Commit

Permalink
Merge pull request #21 from ariaieboy/20-bug-$set-does-not-work-when-…
Browse files Browse the repository at this point in the history
…currencymask-is-used

fix the  $set bug
  • Loading branch information
ariaieboy committed May 8, 2024
2 parents c46b442 + 9350ce8 commit e7fa713
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 e7fa713

Please sign in to comment.