Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 268353d

Browse files
committed
fix(typeahead): return null if empty
- Return `null` instead to unify falsy values
1 parent ff37fb6 commit 268353d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typeahead/typeahead.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap
290290
if (!inputValue) {
291291
// Reset in case user had typed something previously.
292292
modelCtrl.$setValidity('editable', true);
293-
return inputValue;
293+
return null;
294294
} else {
295295
modelCtrl.$setValidity('editable', false);
296296
return undefined;

0 commit comments

Comments
 (0)