material icon indicating copy to clipboard operation
material copied to clipboard

ng-message of md-autocomplete is invisible

Open tom94zoe opened this issue 10 years ago • 7 comments

Actual Behavior: If you enter something and remove it, a required error message was shown. If you try it a second time, the error message wasn't shown, because of the following style

md-input-container .md-input-message-animation:not(.ng-animate) { opacity: 0; margin-top: -100px; }.

CodePen (or steps to reproduce the issue): * Used the floating label example of the demos

tom94zoe avatar Aug 31 '16 08:08 tom94zoe

@topherfangio Is this related to the ngMessages issues we experience right now?

devversion avatar Aug 31 '16 09:08 devversion

@DevVersion Not sure; it sounds related but I'm having trouble reproducing the issue.

@tom94zoe Can you please provide the link to our docs so we know what version you were testing against?

topherfangio avatar Aug 31 '16 15:08 topherfangio

I used the latest version https://material.angularjs.org/latest/demo/autocomplete

tom94zoe avatar Sep 01 '16 06:09 tom94zoe

@tom94zoe I can't seem to produce this against latest or HEAD (which has my recent ng-messages fixes for input).

Can you help me better understand how to reproduce it? Also, can you test against https://material.angularjs.org/HEAD/demo/autocomplete to make sure it hasn't already been fixed?

topherfangio avatar Sep 01 '16 16:09 topherfangio

nimbus-record-video

I also tested it against the head. As you can see the error message is hidden. Maybe I am missing something or cannot see it.

tom94zoe avatar Sep 02 '16 06:09 tom94zoe

@tom94zoe Got it; thanks for the screenshot. I can definitely reproduce now.

At first guess, it might be related to the fact that the element actually has a value even though it's not one of the supplied options, so something with the ng-required might be getting confused.

topherfangio avatar Sep 02 '16 20:09 topherfangio

+1

prateekchoudhary avatar Sep 21 '16 20:09 prateekchoudhary