Added ability to select tags in tag input

This commit is contained in:
Marcin Kurczewski
2014-09-29 19:48:14 +02:00
parent e58b556f66
commit 51b3342d62
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,9 @@ App.Controls.TagInput = function(
$wrapper.append($input);
$wrapper.insertAfter($underlyingInput);
$wrapper.click(function(e) {
if (e.target.nodeName === 'LI') {
return;
}
e.preventDefault();
$input.focus();
});