adopted-ember-addons / adopted-ember-addons/ember-paper
External validation errors are not shown instantly
- Linguagem predominante
- JavaScript
- Estrelas
- 879
- Forks
- 327
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**I have the following setup:**
paper-form with paper-input elements. The errors property of the paper-input elements is set to model.validations.attrs.[field].messages. Validation is done with ember-cp-validations. This works fine so far with on exception: For one field the validation is done with the ds-error validator to validate error message from the server.
**This leads to the following problem:**
If I submit the form, the error message gets serialized correctly and even the paper-input method has the error property set BUT it is not shown, as the paper-input element is treated as untouched after submit. I have to first blur on the element to get the error message shown. I would expect this message to be visible instantly.
Guia de contribuição
Direção de pesquisa
Reproduce the issue with paper-form, paper-input, and ember-cp-validations, using a server-side ds-error validation after form submission. Inspect how submission updates the input's touched state and how the errors property is rendered. Done means the serialized validation message is visible immediately after submit, without requiring a blur.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- frontend
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100