Compare commits

...

1 Commits

Author SHA1 Message Date
468e44efac fixes issue 1969
force blur on enter key press
2018-05-02 11:20:11 -07:00
2 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,7 @@
-->
<span ng-controller="DateTimeFieldController">
<input type="text" autocorrect="off" spellcheck="false"
ng-keyup="forceBlur($event)"
ng-model="textValue"
ng-blur="restoreTextValue(); ngBlur()"
ng-mouseup="ngMouseup()"

View File

@ -96,7 +96,14 @@ define(
updateFromView($scope.textValue);
}
function forceBlur($event) {
if ($event.keyCode === 13) {
$event.target.blur();
}
}
$scope.restoreTextValue = restoreTextValue;
$scope.forceBlur = forceBlur;
$scope.picker = { active: false };