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 contains
Browse files Browse the repository at this point in the history
- Change check to contains due to improper check

Closes #4066
Fixes #3076
  • Loading branch information
wesleycho committed Aug 1, 2015
1 parent 6b90e9e commit 9f73d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Expand Up @@ -673,7 +673,7 @@ function ($compile, $parse, $document, $position, dateFilter, dateParser, datepi
});

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

0 comments on commit 9f73d24

Please sign in to comment.