Skip to content

Commit

Permalink
Update currency-mask.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy authored Nov 21, 2023
1 parent 37a9811 commit 74e5e75
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 @@ -19,7 +19,7 @@
{
input:\$wire.{$applyStateBindingModifiers("\$entangle('{$statePath}')")},
init(){
this.masked = this.input?.toString().replaceAll('.','$decimalSeparator');
\$el.value = this.input?.toString().replaceAll('.','$decimalSeparator');
\$watch('input',()=>this.updateMasked());
\$el.addEventListener('input',(event)=>updateInput());
\$el.addEventListener('blur',(event)=>updateInput());
Expand Down

0 comments on commit 74e5e75

Please sign in to comment.