monterail / angular-date-range-picker

Pure Angular date range picker, no jQuery
MIT License
70 stars 50 forks source link

Returning true from the listener to stop preventing document's clicks #5

Closed lukaszwnek closed 10 years ago

lukaszwnek commented 10 years ago

The document click listener method returns false becase $scope.hide() method returns its last expression which evaluates to 'false'. Returning true fixes the problem.