From 4579ed84d751300d31ad564a00842b847fc28ee4 Mon Sep 17 00:00:00 2001 From: a-t Date: Fri, 15 Jan 2016 10:03:48 +0300 Subject: [PATCH] Bug fix for `uib-datepicker-popup` as attribute --- src/datepicker/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index 4f7db572f7..134f67e889 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -658,7 +658,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi angular.forEach(['minMode', 'maxMode'], function(key) { if (attrs[key]) { - scope.$parent.$watch(function() { return attrs[key]; }, function(value) { + scope.$parent.$watch($parse(attrs[key]), function(value) { scope.watchData[key] = value; }); datepickerEl.attr(cameltoDash(key), 'watchData.' + key);