diff --git a/resources/views/currency-mask.blade.php b/resources/views/currency-mask.blade.php index 2e3bbc8..cf99079 100644 --- a/resources/views/currency-mask.blade.php +++ b/resources/views/currency-mask.blade.php @@ -18,11 +18,11 @@ $xdata = <<this.updateInput()); \$watch('input',()=>this.updateMasked()); - \$el.addEventListener('input',(event)=>this.updateInput()); - \$el.addEventListener('blur',(event)=>this.updateInput()); }, updateMasked(){ if(typeof Number(this.input) === 'number'){ @@ -79,7 +79,7 @@ class="fi-fo-text-input" 'step' => $getStep(), 'type' => 'text', 'x-data' => $xdata, - 'x-on:change'=>'updateInput', + 'x-model'=>'masked', 'x-mask:dynamic' => $xmask ], escape: false) "