Skip to content

Commit 0f02584

Browse files
Navya-SinhaaNavya Sinha
andauthored
attempted fix for Datepicker v13 issue #16008 (#18903)
Co-authored-by: Navya Sinha <[email protected]>
1 parent 78a8d01 commit 0f02584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function dateTimePickerController($scope, angularHelper, dateHelper, validationM
111111
// $scope.hasDatetimePickerValue indicates that we had a value before the input was changed,
112112
// but now the input is empty.
113113
$scope.clearDate();
114-
} else if ($scope.model.datetimePickerValue) {
114+
} else if ($scope.model.datetimePickerInputValue) {
115115
var momentDate = moment($scope.model.datetimePickerInputValue, $scope.model.config.format, true);
116116
if (!momentDate || !momentDate.isValid()) {
117117
momentDate = moment(new Date($scope.model.datetimePickerInputValue));
@@ -120,7 +120,7 @@ function dateTimePickerController($scope, angularHelper, dateHelper, validationM
120120
setDate(momentDate);
121121
}
122122
setDatePickerVal();
123-
flatPickr.setDate($scope.model.datetimePickerValue, false);
123+
flatPickr.setDate($scope.model.datetimePickerInputValue, false);
124124
}
125125
}
126126

0 commit comments

Comments
 (0)