From b36a15d230ad0f56700b7cffce53b903de5d4671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 15 Feb 2017 09:49:16 +0100 Subject: [PATCH] Fix bug #4947: Now arrows works with the tags input opened --- .../components/tags/tag-dropdown/tag-dropdown.directive.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/components/tags/tag-dropdown/tag-dropdown.directive.coffee b/app/modules/components/tags/tag-dropdown/tag-dropdown.directive.coffee index c1386e2f..564524a1 100644 --- a/app/modules/components/tags/tag-dropdown/tag-dropdown.directive.coffee +++ b/app/modules/components/tags/tag-dropdown/tag-dropdown.directive.coffee @@ -61,7 +61,7 @@ TagOptionDirective = () -> link = (scope, el) -> stop() - $(document).on "keydown.tags-keyboard-navigation", (event) => + $(el).parent().on "keydown.tags-keyboard-navigation", (event) => code = if event.keyCode then event.keyCode else event.which if code == 40 || code == 38