U4-7400 - Datepicker is not updating scope model value in time for 3rd party plugins

Force set scope model value when the datetime changes, rather than just on formsubmit. This means that 3rd party plugins (such as grids) can use this editor.
This commit is contained in:
kiasyn
2015-11-25 10:25:00 +13:00
parent 89afacf161
commit dbece874dd

View File

@@ -44,6 +44,7 @@ function dateTimePickerController($scope, notificationsService, assetsService, a
$scope.datePickerForm.datepicker.$setValidity("pickerError", true);
$scope.hasDatetimePickerValue = true;
$scope.datetimePickerValue = e.date.format($scope.model.config.format);
$scope.model.value = $scope.datetimePickerValue;
}
else {
$scope.hasDatetimePickerValue = false;