You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to let users to clear selecting but on the same time restrict choice to options from predictions. When clearing input using backspace onBlur listener reselects last selection on line 135: if ($scope.forceSelection) { $scope.selected = ($scope.selected === -1) ? 0 : $scope.selected; }
Input can be safely cleared by selecting whole input with for example ctrl-a and pressing backspace/delete. In such case first check ($scope.predictions.length === 0) in onBlur returns true and input gets cleared.
It seems that when input gets cleared predictions should also get cleared.
The text was updated successfully, but these errors were encountered:
I would like to let users to clear selecting but on the same time restrict choice to options from predictions. When clearing input using backspace onBlur listener reselects last selection on line 135:
if ($scope.forceSelection) { $scope.selected = ($scope.selected === -1) ? 0 : $scope.selected; }
Input can be safely cleared by selecting whole input with for example ctrl-a and pressing backspace/delete. In such case first check
($scope.predictions.length === 0)
in onBlur returns true and input gets cleared.It seems that when input gets cleared predictions should also get cleared.
The text was updated successfully, but these errors were encountered: