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

#6590 Fixed the issue #6591

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/typeahead/typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap

var appendToBody = attrs.typeaheadAppendToBody ? originalScope.$eval(attrs.typeaheadAppendToBody) : false;

var isFocusOnBlur = attrs.typeaheadFocusOnBlur ? originalScope.$eval(attrs.typeaheadFocusOnBlur) : false;

var appendTo = attrs.typeaheadAppendTo ?
originalScope.$eval(attrs.typeaheadAppendTo) : null;

Expand Down Expand Up @@ -461,7 +463,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap
});
element.val('');
}
hasFocus = false;
hasFocus = isFocusOnBlur;
selected = false;
});

Expand Down