Skip to content

Commit

Permalink
Oops console.log detected
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy authored May 28, 2024
1 parent 0d4075a commit a59ce30
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions resources/views/currency-mask.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@
\$watch('input',()=>this.updateMasked());
},
updateMasked(){
console.log('masked')
if(typeof Number(this.input) === 'number'){
this.masked = this.input?.toString().replaceAll('.','$decimalSeparator');
\$el.dispatchEvent(new Event('input'));
}
},
updateInput(){
console.log('input')
this.input = this.masked?.replaceAll('$thousandSeparator','').replaceAll('$decimalSeparator','.');
}
}
Expand Down

0 comments on commit a59ce30

Please sign in to comment.