From 97ebdbbdc125909cafe786e2e2c1f3a3530de9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B0=D1=88=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4=D0=B8?= =?UTF-8?q?=D0=BC=20=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Fri, 16 Aug 2024 14:59:09 +0400 Subject: [PATCH] fix(kit): Segmented subscription to control value changes - fix lint & small improvement --- .eslintrc.json | 18 +++++++++--------- .../segmented/segmented.directive.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9e35dac9c187..de6ea13631fa 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,15 +1,15 @@ { - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "prettier/prettier": [ + "overrides": [ + { + "files": ["*.ts"], + "rules": { + "prettier/prettier": [ "error", { "endOfLine": "auto" } ] - } - } - ] -} \ No newline at end of file + } + } + ] +} diff --git a/projects/kit/components/segmented/segmented.directive.ts b/projects/kit/components/segmented/segmented.directive.ts index 6d3ecbd10415..f5f91fd439d8 100644 --- a/projects/kit/components/segmented/segmented.directive.ts +++ b/projects/kit/components/segmented/segmented.directive.ts @@ -49,7 +49,7 @@ export class TuiSegmentedDirective implements AfterContentChecked, AfterContentI takeUntilDestroyed(this.destroyRef), ) .subscribe((value) => { - this.update(this.el.querySelector(`input[value=${value}]`)); + this.update(this.el.querySelector(`[value=${value}]`)); }); }