angular-input-masks icon indicating copy to clipboard operation
angular-input-masks copied to clipboard

[cep] Validation is not working

Open viniciusdacal opened this issue 9 years ago • 6 comments

When trying to use cep as a number, validation does not work, because the validation is checking for value.length. We could add a toString() before checking length.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32589684-cep-validation-is-not-working?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

viniciusdacal avatar Apr 04 '16 20:04 viniciusdacal

Sure. Can you make a pull request to fix this issue? Take a look at: https://github.com/assisrafael/angular-input-masks/blob/master/CONTRIBUTING.md#pull-requests

assisrafael avatar Apr 05 '16 10:04 assisrafael

sure I can :smile:

viniciusdacal avatar Apr 05 '16 11:04 viniciusdacal

Here's a pull request for the US phone field. Hope you can get it in soon :) PR to fix US phone validation.

houmark avatar Apr 30 '16 23:04 houmark

+1

marciodiasdeveloper avatar Jul 22 '16 16:07 marciodiasdeveloper

ao entrar com o valor no meu model ele inicia com erro.

marciodiasdeveloper avatar Jul 22 '16 17:07 marciodiasdeveloper

+1

valdirviana avatar Sep 02 '16 16:09 valdirviana