Material: input: ng-messages animation errors

Created on 6 Mar 2017  路  9Comments  路  Source: angular/material

screen shot 2017-03-06 at 3 44 25 pm

screen shot 2017-03-06 at 3 44 11 pm

Visible with ng 1.5.x and 1.6.x

urgent external contributor internal contributor Pull Request animations fixed bug

All 9 comments

Also happens on 1.5.5 - repro on 1.6.2 aswell

@topherfangio as the one who wrote this code, do you know what's going on?

I am also seeing this in 1.1.3

I've also seen the opposite where input errors can stick, _however I am having trouble duplicating in a codepen_. Here is a tiny code pen for demonstrating something similar to what @ThomasBurleson is showing:

https://codepen.io/mckenzielong/pen/qmZVyo

  1. Show field
  2. enter an invalid number (say 500)
  3. click submit
  4. hide field and reshow

We are seeing this issue as well:
using:
Angular Material v1.1.4
Angular v1.6.4

I know this was a long ago but anyone know how to solve this issue?

@AnushaputtaUI no one has investigated this issue yet. If you'd like to look into it, I'd like to know what you find. If you can find a solution, then sending a PR would be great.

Verified that it still exists with AngularJS 1.7.0 and AngularJS Material 1.1.9 in this updated CodePen.

This was implemented in ce5f7c2

This was to fix a problem with displaying the messages.
However I am not sure why this introduced showing warnings when ng-messages are not provided.

There are situations like the one provided in the demo where you just would like to highlight the problematic field but without showing any extra error messages.

I believe the fix required was in 4 lines (the rest was not really needed):
https://github.com/angular/material/commit/ce5f7c28770bd928afd31a33ee33000deb3311e6#diff-da06475ed96460fbcb944d6f1f31748aR1059

I will test it.

Adding CodePen with my fix applied.

Adding CodePen for the other issue #9468. Fix for the autocomplete introduced the warnings in the console. This is to show that the fix itself is still working fine after implementing my changes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbondor picture sbondor  路  3Comments

chriseyhorn picture chriseyhorn  路  3Comments

epelc picture epelc  路  3Comments

buzybee83 picture buzybee83  路  3Comments

rtprakash picture rtprakash  路  3Comments