Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alenaksu committed Mar 13, 2016
1 parent ae9a9a1 commit 461d90a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/mdPickers.css
Expand Up @@ -74,7 +74,7 @@
}
.mdp-datepicker {
max-height: initial;
max-width: 0px;
min-width: 234px;
}
.mdp-datepicker * {
outline: 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/mdPickers.js
Expand Up @@ -405,7 +405,7 @@ module.directive("mdpDatePicker", ["$mdpDatePicker", "$timeout", function($mdpDa
inputElement[0].size = strValue.length;
ngModel.$setViewValue(strValue);
} else {
if(ngModel.$pristine) inputContainerCtrl.setInvalid(true);
if(ngModel.$pristine && ngModel.$invalid) inputContainerCtrl.setInvalid(true);
ngModel.$setViewValue(date);
}
if(!ngModel.$pristine && messages.hasClass("md-auto-hide") && inputContainer.hasClass("md-input-invalid")) messages.removeClass("md-auto-hide");
Expand Down
2 changes: 1 addition & 1 deletion dist/mdPickers.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mdPickers.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mdPickers.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/mdpDatePicker/mdpDatePicker.js
Expand Up @@ -344,7 +344,7 @@ module.directive("mdpDatePicker", ["$mdpDatePicker", "$timeout", function($mdpDa
inputElement[0].size = strValue.length;
ngModel.$setViewValue(strValue);
} else {
if(ngModel.$pristine) inputContainerCtrl.setInvalid(true);
if(ngModel.$pristine && ngModel.$invalid) inputContainerCtrl.setInvalid(true);
ngModel.$setViewValue(date);
}
if(!ngModel.$pristine && messages.hasClass("md-auto-hide") && inputContainer.hasClass("md-input-invalid")) messages.removeClass("md-auto-hide");
Expand Down
2 changes: 1 addition & 1 deletion src/components/mdpDatePicker/mdpDatePicker.less
@@ -1,6 +1,6 @@
.mdp-datepicker {
max-height: initial;
max-width: 0px;
min-width: 234px;
* {
outline: 0;
}
Expand Down

0 comments on commit 461d90a

Please sign in to comment.