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

Fix skipHide changed to multiple in Angular > 1.1.2 #189

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dist/mdPickers.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module.provider("$mdpDatePicker", function() {
currentDate: currentDate,
options: options
},
skipHide: true
multiple: true
});
};

Expand Down Expand Up @@ -436,6 +436,7 @@ module.directive("mdpDatePicker", ["$mdpDatePicker", "$timeout", function($mdpDa
// update input element if model has changed
ngModel.$formatters.unshift(function(value) {
var date = angular.isDate(value) && moment(value);
ngModel.$setValidity('required', date && date.isValid());
if(date && date.isValid())
updateInputElement(date.format(scope.dateFormat));
else
Expand Down Expand Up @@ -811,7 +812,7 @@ module.provider("$mdpTimePicker", function() {
time: time,
autoSwitch: options.autoSwitch
},
skipHide: true
multiple: true
});
};

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.

3 changes: 2 additions & 1 deletion src/components/mdpDatePicker/mdpDatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.provider("$mdpDatePicker", function() {
currentDate: currentDate,
options: options
},
skipHide: true
multiple: true
});
};

Expand Down Expand Up @@ -375,6 +375,7 @@ module.directive("mdpDatePicker", ["$mdpDatePicker", "$timeout", function($mdpDa
// update input element if model has changed
ngModel.$formatters.unshift(function(value) {
var date = angular.isDate(value) && moment(value);
ngModel.$setValidity('required', date && date.isValid());
if(date && date.isValid())
updateInputElement(date.format(scope.dateFormat));
else
Expand Down
2 changes: 1 addition & 1 deletion src/components/mdpTimePicker/mdpTimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ module.provider("$mdpTimePicker", function() {
time: time,
autoSwitch: options.autoSwitch
},
skipHide: true
multiple: true
});
};

Expand Down