Skip to content

Commit

Permalink
refactor: code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Sep 30, 2024
1 parent 1ac4207 commit 82e523c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions projects/core/components/textfield/textfield.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ export class TuiTextfieldComponent<T> implements TuiDataListHost<T> {
return filledValue.length > value.length ? filledValue : '';
});

protected showFiller = computed(() =>
Boolean(
protected showFiller = computed<boolean>(
() =>
this.focused() &&
this.computedFiller() &&
(this.directive?.nativeValue() || !this.input?.nativeElement.placeholder),
),
!!this.computedFiller() &&
(!!this.directive?.nativeValue() || !this.input?.nativeElement.placeholder),
);

@ViewChild('vcr', {read: ViewContainerRef, static: true})
Expand Down

0 comments on commit 82e523c

Please sign in to comment.