From 8ceb0a7d2b9f68a38b7fc73eac92e54f14ec69f3 Mon Sep 17 00:00:00 2001 From: Vasyl Makarevych Date: Fri, 18 Mar 2016 15:14:06 +0200 Subject: [PATCH] Update input.js element[0].id will not work if you assign id name like this id="{{idName}}" --- app/scripts/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/input.js b/app/scripts/input.js index 3db7ba6..75a9313 100644 --- a/app/scripts/input.js +++ b/app/scripts/input.js @@ -56,7 +56,7 @@ Module.directive('dateTime', ['$compile', '$document', '$filter', 'dateTimeConfi index = views.indexOf(view), dismiss = attrs.autoClose ? $parse(attrs.autoClose)(scope) : dateTimeConfig.autoClose, picker = null, - pickerID = element[0].id, + pickerID = attrs.id, position = attrs.position || dateTimeConfig.position, container = null, minDate = null,