Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(datepicker): mark the input as invalid on submit, add missing import #9050

Closed

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 16, 2016

  • Fixes invalid datepickers not being highlighted when their parent form is submitted.
  • Fixes $mdAria not being imported and causing a JS error occasionally.

Fixes #8411.

@crisbeto crisbeto added the needs: review This PR is waiting on review from the team label Jul 16, 2016
@@ -53,7 +53,7 @@
* </hljs>
*
*/
function datePickerDirective($$mdSvgRegistry) {
function datePickerDirective($$mdSvgRegistry, $mdUtil) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that the same as in #9049. You could probably drop #9049 and just use this one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#9049 is for ngAria, but yeah it makes sense to merge these two.

* Fixes invalid datepickers not being highlighted when their parent form is submitted.
* Fixes $mdAria not being imported and causing a JS error occasionally.

Fixes angular#8411.
@crisbeto crisbeto force-pushed the 8411/datepicker-highlight-on-submit branch from f54ddd0 to 8f63c06 Compare July 16, 2016 14:09
@crisbeto crisbeto changed the title fix(datepicker): mark the input as invalid on submit fix(datepicker): mark the input as invalid on submit, add missing import Jul 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants