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

Commit 7c3c631

Browse files
Foxandxsswesleycho
authored andcommitted
fix(datepicker): fix support for literal format on popup
- Add check for `uibDatepickerPopup` Closes #4635 Fixes #4616
1 parent 6d1cd0f commit 7c3c631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datepicker/datepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
550550
dateFormat = datepickerPopupConfig.html5Types[attrs.type];
551551
isHtml5DateInput = true;
552552
} else {
553-
dateFormat = attrs.datepickerPopup || datepickerPopupConfig.datepickerPopup;
553+
dateFormat = attrs.datepickerPopup || attrs.uibDatepickerPopup || datepickerPopupConfig.datepickerPopup;
554554
attrs.$observe('uibDatepickerPopup', function(value, oldValue) {
555555
var newDateFormat = value || datepickerPopupConfig.datepickerPopup;
556556
// Invalidate the $modelValue to ensure that formatters re-run

0 commit comments

Comments
 (0)