Ngx-mask: Cannot read property 'match' of null

Created on 3 Jul 2019  ·  3Comments  ·  Source: JsDaddy/ngx-mask

https://github.com/JsDaddy/ngx-mask/blob/0b563ffc91ac5623c005ee42313b563eb3a47f4a/src/app/ngx-mask/mask.directive.ts#L247

CDocumentComponent.html:1 ERROR TypeError: Cannot read property 'match' of null
at MaskDirective.push../node_modules/ngx-mask/fesm5/ngx-mask.js.MaskDirective.onFocus (ngx-mask.js:911)
at Object.eval [as handleEvent] (CDocumentComponent.html:1)
at handleEvent (core.js:27341)
at callWithDebugContext (core.js:28411)
at Object.debugHandleEvent [as handleEvent] (core.js:28138)
at dispatchEvent (core.js:18085)
at core.js:26550
at HTMLInputElement. (platform-browser.js:1009)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
at Object.onInvokeTask (core.js:24340)

help wanted question

Most helpful comment

@mnagaev we fixed this, you can try to use in mask version 8.0.1

All 3 comments

@mnagaev could you provide an example, where you caught this error ?

когда кликаешь на поле со значением null (на нем стоят такие аттрибуты: mask='0000', [showMaskTyped]='true')

@mnagaev we fixed this, you can try to use in mask version 8.0.1

Was this page helpful?
0 / 5 - 0 ratings