diff --git a/resources/views/currency-mask.blade.php b/resources/views/currency-mask.blade.php index 1ba598f..2e3bbc8 100644 --- a/resources/views/currency-mask.blade.php +++ b/resources/views/currency-mask.blade.php @@ -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')); }