Support keyboard input in date/time picker

This commit is contained in:
Kenn Jacobsen
2019-06-13 15:20:23 +02:00
committed by Sebastiaan Janssen
parent 014eba971e
commit bd8e344736
2 changed files with 6 additions and 0 deletions

View File

@@ -77,6 +77,11 @@ function dateTimePickerController($scope, notificationsService, assetsService, a
setDate(date);
setDatePickerVal();
};
$scope.inputChanged = function() {
setDate($scope.model.datetimePickerValue);
setDatePickerVal();
}
//here we declare a special method which will be called whenever the value has changed from the server
//this is instead of doing a watch on the model.value = faster

View File

@@ -16,6 +16,7 @@
id="{{model.alias}}"
type="text"
ng-model="model.datetimePickerValue"
ng-blur="inputChanged()"
ng-required="model.validation.mandatory"
val-server="value"
class="datepickerinput">