Skip to content

Commit

Permalink
fix(kit): Segmented subscription to control value changes - fix lint …
Browse files Browse the repository at this point in the history
…& small improvement
  • Loading branch information
Хашев Вадим Владимирович committed Aug 16, 2024
1 parent 98ad73b commit 97ebdbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"overrides": [
{
"files": ["*.ts"],
"rules": {
"prettier/prettier": [
"overrides": [
{
"files": ["*.ts"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
]
}
}
}
]
}
2 changes: 1 addition & 1 deletion projects/kit/components/segmented/segmented.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`));
});
}

Expand Down

0 comments on commit 97ebdbb

Please sign in to comment.