diff --git a/src/core/components/show-password/core-show-password.html b/src/core/components/show-password/core-show-password.html index bd1589bb6..5a260c94a 100644 --- a/src/core/components/show-password/core-show-password.html +++ b/src/core/components/show-password/core-show-password.html @@ -1,5 +1,5 @@ - diff --git a/src/core/components/show-password/show-password.ts b/src/core/components/show-password/show-password.ts index 22faec88f..2ab247d28 100644 --- a/src/core/components/show-password/show-password.ts +++ b/src/core/components/show-password/show-password.ts @@ -45,7 +45,6 @@ export class CoreShowPasswordComponent implements OnInit, AfterViewInit { @ContentChild(IonInput) ionInput?: IonInput; shown = false; // Whether the password is shown. - label = ''; // Label for the button to show/hide. protected input?: HTMLInputElement; // Input affected. protected element: HTMLElement; // Current element. @@ -97,7 +96,6 @@ export class CoreShowPasswordComponent implements OnInit, AfterViewInit { * @param input The input element. */ protected setData(input: HTMLInputElement): void { - this.label = this.shown ? 'core.hide' : 'core.show'; input.type = this.shown ? 'text' : 'password'; }