From 2a610dba09d8d6db7657818de606bd6e07c92488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=83=D0=BB=D0=B0=D1=82=20=D0=90=D0=BB=D1=8C=D0=BC?= =?UTF-8?q?=D1=83=D1=85=D0=B0=D0=BC=D0=B5=D1=82=D0=BE=D0=B2?= Date: Sat, 4 Apr 2020 11:16:03 +0300 Subject: [PATCH] Autocomplete works wrong with down arrow button. #925 --- modules/components/tag-input-form/tag-input-form.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/components/tag-input-form/tag-input-form.component.ts b/modules/components/tag-input-form/tag-input-form.component.ts index 39ff5841..c2e2da1c 100644 --- a/modules/components/tag-input-form/tag-input-form.component.ts +++ b/modules/components/tag-input-form/tag-input-form.component.ts @@ -194,6 +194,10 @@ export class TagInputForm implements OnInit, OnChanges { * @param $event */ public onKeyDown($event) { + if ($event.key === 'ArrowDown') { + return; + } + this.inputText = this.value.value; if ($event.key === 'Enter') { this.submit($event);