material icon indicating copy to clipboard operation
material copied to clipboard

md-datepicker red line appears under date when date set in code

Open apils opened this issue 10 years ago • 4 comments

If you have the 'required' attribute and an empty md-datepicker, and then set the date using code (rather than entering it directly into the form) the line under the date is red, indicating it is invalid when it is not. See codepen http://codepen.io/apilsworth/pen/VaXeJy

apils avatar Apr 13 '16 10:04 apils

@apils This appears to be a duplicate of #6086. Can you please verify if it's the same or if it's different?

topherfangio avatar Apr 14 '16 16:04 topherfangio

You're right. It is the same issue. Apologies, didn't spot that one.

apils avatar Apr 15 '16 06:04 apils

@apils No worries! Closing this one as a duplicate.

topherfangio avatar Apr 15 '16 17:04 topherfangio

Just in case anyone is looking for the answer. The solution is simple. Instead of required, just use ng-required, that's it.

Ocean-Blue avatar Oct 13 '17 21:10 Ocean-Blue