From f4aae292603ae69e2033d375c3892b29153c27d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henning=20Klas=C3=A9n?= Date: Thu, 13 Aug 2020 10:27:23 +0200 Subject: [PATCH] Remove ternary for setting focusability based on index. --- .../lib/controls/filter-tag/filter-tag-group.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/komponentkartan/src/lib/controls/filter-tag/filter-tag-group.component.ts b/projects/komponentkartan/src/lib/controls/filter-tag/filter-tag-group.component.ts index 1efeed5af..4b16a40e3 100644 --- a/projects/komponentkartan/src/lib/controls/filter-tag/filter-tag-group.component.ts +++ b/projects/komponentkartan/src/lib/controls/filter-tag/filter-tag-group.component.ts @@ -35,9 +35,8 @@ export class FilterTagGroupComponent implements AfterContentInit, OnDestroy { } setFilterTagTabFocusability() { - this.filterTags.forEach((x, i) => { - const focusable = i ? false : true; - x.makeTabFocusable(focusable); + this.filterTags.forEach((x) => { + x.makeTabFocusable(true); }); }