Skip to content

Commit

Permalink
Added blur_on_select option.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4C4A committed May 3, 2017
1 parent 0d3b44c commit 6ff15b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions massautocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ angular.module('MassAutoComplete', [])
update_model_value(selected.value);
hide_autocomplete();

if(current_options.blur_on_select){
current_element[0].blur();
}

if (current_options.on_select) {
current_options.on_select(selected);
}
Expand Down
2 changes: 1 addition & 1 deletion massautocomplete.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ff15b6

Please sign in to comment.