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

fix(datepicker): update input size and invalid class on calendar click #4262

Closed
wants to merge 1 commit into from
Closed

fix(datepicker): update input size and invalid class on calendar click #4262

wants to merge 1 commit into from

Conversation

mhchen
Copy link

@mhchen mhchen commented Aug 20, 2015

@jelbourn Please review

@mhchen
Copy link
Author

mhchen commented Aug 20, 2015

Also updated a few unit tests involving the invalid class to use the .toHaveClass Jasmine matcher that I should've seen the first time around.

self.inputElement.value = self.dateLocale.formatDate(date);
self.closeCalendarPane();
self.resizeInputElement();
self.inputContainer.classList.remove(INVALID_CLASS);
Copy link
Member

Choose a reason for hiding this comment

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

Would it work if you just called ngModelCtrl.$render here?

Copy link
Author

Choose a reason for hiding this comment

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

Hm no, it doesn't look like calling $render actually triggers the input handlers

@jelbourn
Copy link
Member

LGTM

@mhchen mhchen closed this in 18458b7 Aug 20, 2015
@mhchen mhchen deleted the calendar-invalid-state branch August 20, 2015 20:11
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants