Allow to click anywhere in tag-input for focus

This commit is contained in:
Johannes Zellner
2020-03-25 06:31:31 +01:00
parent e1af60cfa9
commit 6994ec0f03
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -628,6 +628,9 @@ app.directive('tagInput', function () {
return tempEl.remove();
}
});
element.bind('click', function () {
element[0].firstChild.lastChild.focus();
});
element.bind('keydown', function (e) {
var key = e.which;
if (key === 9 || key === 13) {