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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user