Skip to content

Commit 2102fbc

Browse files
committed
feat(input): always-on password-toggle (#DS-4288)
1 parent c5c1a45 commit 2102fbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/components-experimental/form-field/password-toggle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class KbqPasswordToggle {
5151

5252
/** Whether to display the password toggle. */
5353
get visible(): boolean {
54-
return !this.formField?.disabled && !!this.control?.ngControl?.value;
54+
return !this.formField?.disabled;
5555
}
5656

5757
/** Toggles the password visibility. */

packages/components/form-field/password-toggle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class KbqPasswordToggle extends KbqTooltipTrigger implements AfterViewIni
120120
* @docs-private
121121
*/
122122
get visibility(): 'hidden' | 'visible' {
123-
return this.control.disabled || this.control.empty ? 'hidden' : 'visible';
123+
return this.control.disabled ? 'hidden' : 'visible';
124124
}
125125

126126
constructor() {

0 commit comments

Comments
 (0)