Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Conversation

@tipycalFlow
Copy link
Contributor

@tipycalFlow tipycalFlow commented Jan 19, 2017

When datepicker opens first time, the selectedDay, selectedMonth and selectedYear are not initialised, which prevent the active class from being applied. This works on subsequent opens though, once setDatepickerDay has been called.

When datepicker opens first time, the selectedDay, selectedMonth and selectedYear are not initialised, which prevent the active class from being applied. This works on subsequent opens though once setDatepickerDay is called.
@tipycalFlow tipycalFlow changed the title Setting selected date on first time load Setting selected date on first time showCalendar() call Jan 19, 2017
@45kb
Copy link
Member

45kb commented Jan 19, 2017

legit @tipycalFlow thanks.

See my comments, be sure to not skip linter on every commit please 👍


theCalendar.classList.add('_720kb-datepicker-open');
var dateString = angular.element((angular.element(theCalendar).parent()[0]).querySelector('input')).val();
var date = new Date(dateString);
Copy link
Member

@45kb 45kb Jan 19, 2017

Choose a reason for hiding this comment

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

Please run the linter task do not skip it, i am quite sure you'll have to combine these global vars with the upper ones (see linter errors) :)

var dateString = ...
    , date = ....
   ;```

@tipycalFlow
Copy link
Contributor Author

@45kb please check now

@45kb
Copy link
Member

45kb commented Jan 19, 2017

@tipycalFlow awesome, tested this deeply? :)

@45kb 45kb merged commit 2d24a59 into 720kb:master Jan 19, 2017
@tipycalFlow
Copy link
Contributor Author

Needs changes for safari (getting invalid date when parsing)

@45kb
Copy link
Member

45kb commented Jan 19, 2017

@tipycalFlow ok i reverted the PR please send a new one ;) , give it a try on IE if you can.

Also be sure to run grunt lint before to commit or PR please 👍

@45kb 45kb added the invalid label Jan 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants