Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some minor issues #198

Merged
merged 15 commits into from
Nov 6, 2015
Merged

Fix some minor issues #198

merged 15 commits into from
Nov 6, 2015

Conversation

DanTalash
Copy link
Contributor

This PR fixes several issues:

  • If the minDate / maxDate provided to the input element was not a valid moment object, the validation function would throw an exception.
    • Now, it returns that any value is valid if minDate / maxDate are not moments (ie, validation is disabled).
  • The date-range directive did not watch for data changes originating from outside the directive. This has been resolved.
  • The demo page did not specify a timezone for the date-range directive. This directive therefore used local dates.

* CSS rule which was causing an issue was removed.
* Refactored duplicate code which checks if an event is targeted at a
picker into a utility function.
* Ranger picker element generation simplified.
Add picker ID to range to demonstrate updates of max / min views.
1. Demo now shows min / max validation in form.
2. Shortened some texts for readability.
3. Updated angular version.
* When a min/max date value is provided to the input that isn't a valid
moment, the validation will mark any dates as valid.
Data changes from outside the directive are now caught, and the picker
max/min dates are updated accordingly.
Last version was autoformatted
@eralha
Copy link
Collaborator

eralha commented Nov 5, 2015

Can you please change the bower and project version in bower.json and package.json? change it to 2.0.1, this will enable bower users to update their code :). many thanks for your contribution!

eralha added a commit that referenced this pull request Nov 6, 2015
@eralha eralha merged commit b7371e4 into g00fy-:master Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not showing today but the date from the scope
2 participants