Skip to content

Commit

Permalink
fix(kit): display view/hide password button with readOnly property
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnowikow committed Aug 19, 2024
1 parent d178b13 commit 9f65c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class TuiInputPasswordComponent
}

get inputType(): TuiInputType {
return this.isPasswordHidden || !this.interactive ? 'password' : 'text';
return this.isPasswordHidden || this.computedDisabled ? 'password' : 'text';
}

onValueChange(textValue: string): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[pseudoFocus]="pseudoFocus"
[pseudoHover]="pseudoHover"
[readOnly]="readOnly"
[tuiTextfieldIcon]="interactive ? iconContent : ''"
[tuiTextfieldIcon]="!computedDisabled ? iconContent : ''"
[(value)]="value"
(focusedChange)="onFocused($event)"
>
Expand Down

0 comments on commit 9f65c59

Please sign in to comment.