issues
search
williamgueiros
/
Brcpfcnpj
Validação,Formatação e Gerador Cpf/Cnpj em Elixir
MIT License
69
stars
17
forks
source link
Brcpfcnpj.Changeset.validate/3 does not clean previous errors if validator returns no error
#40
Open
fmbraga
opened
2 years ago
fmbraga
commented
2 years ago
Scenario:
A LiveView form using phx-change to validate a CPF field
When typing a CPF, multiple calls to BrCpfcnpj.Changeset.validate_cpf/2 are made, and :errors list contains a "Invalid Cpf" error
The final digit should clean this error.
Scenario: