amarkes / br-mask

MIT License
116 stars 56 forks source link

"numberAndTousand: true" dispara erro com blur em campo vazio #47

Open paulo-campos opened 4 years ago

paulo-campos commented 4 years ago

"ERROR TypeError: value.replace is not a function at BrMaskDirective.push../node_modules/br-mask/dist/directives/br-mask.js.BrMaskDirective.thousand (br-mask.js:410) at BrMaskDirective.push../node_modules/br-mask/dist/directives/br-mask.js.BrMaskDirective.returnValue (br-mask.js:205) at BrMaskDirective.push../node_modules/br-mask/dist/directives/br-mask.js.BrMaskDirective.onNgModelChange (br-mask.js:31) at Object.eval [as handleEvent] (SpicesComponent.html:116) at handleEvent (core.js:43993) at callWithDebugContext (core.js:45632) at Object.debugHandleEvent [as handleEvent] (core.js:45247) at dispatchEvent (core.js:29804) at core.js:31837 at SafeSubscriber.schedulerFn [as _next] (core.js:35379)"

Qualquer outro tipo de entrada no blur com o campo vazia não gera esse erro.