From 0a87303e2b8acdc413adb11198607a97453bbc09 Mon Sep 17 00:00:00 2001 From: Alexey Zezin Date: Tue, 24 Dec 2024 19:30:26 +0300 Subject: [PATCH] fix(legacy): redundant fields --- .../primitive-textfield/primitive-textfield.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/legacy/components/primitive-textfield/primitive-textfield.component.ts b/projects/legacy/components/primitive-textfield/primitive-textfield.component.ts index 94a9197937ae..ec598de66d72 100644 --- a/projects/legacy/components/primitive-textfield/primitive-textfield.component.ts +++ b/projects/legacy/components/primitive-textfield/primitive-textfield.component.ts @@ -146,9 +146,11 @@ export class TuiPrimitiveTextfieldComponent } protected get labelOutside(): boolean { - const {size, labelOutside} = this.controller; - - return this.appearance === 'table' || size === 's' || labelOutside; + return ( + this.appearance === 'table' || + this.size === 's' || + this.controller.labelOutside + ); } protected get size(): TuiSizeL | TuiSizeS {