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

Commit

Permalink
fix(datepicker): change to $popup
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Sep 11, 2015
1 parent 53f5f47 commit 65814f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ function($compile, $parse, $document, $rootScope, $position, dateFilter, datePar
delete options.initDate;
}
angular.forEach(options, function(value, option) {
datepickerEl.attr( cameltoDash(option), value );
datepickerEl.attr(cameltoDash(option), value);
});
}

Expand Down Expand Up @@ -715,7 +715,7 @@ function($compile, $parse, $document, $rootScope, $position, dateFilter, datePar
});

var documentClickBind = function(event) {
if (scope.isOpen && !(element[0].contains(event.target) || popupEl[0].contains(event.target))) {
if (scope.isOpen && !(element[0].contains(event.target) || $popup[0].contains(event.target))) {
scope.$apply(function() {
scope.isOpen = false;
});
Expand Down

0 comments on commit 65814f1

Please sign in to comment.