Ngx-mask: More digits at FormControl that was typed

Created on 20 Apr 2017  路  4Comments  路  Source: JsDaddy/ngx-mask

TEMPLATE

 <input placeholder="CEP" [formControl]="form.get('dadosEndereco.endereco.cep')" mask="99999-999">

When i type more digits that was defined in mask, strange behavior happens, the last typed digit in definied in FormControl value, so the value has one more digit.

image

Most helpful comment

@victorschinaider Thanks for issue, we will update our module. If you want you could help with it

All 4 comments

@victorschinaider Thanks for issue, we will update our module. If you want you could help with it

@NepipenkoIgor , thanks! I'll study the code too...

@NepipenkoIgor, i fixed the bug in the forked repo. I'll create a merge reques soon. I updated to the lastest Angular/cli too.

Could i propose a change in layout of examples? Instead using bootstrap, maybe the Material2, what do you think?

@victorschinaider i think it will be awesome.I think It is new stage for our directive

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnagaev picture mnagaev  路  3Comments

dissy123 picture dissy123  路  3Comments

dimmal picture dimmal  路  3Comments

tanjuyayak picture tanjuyayak  路  3Comments

TimWarp picture TimWarp  路  4Comments