mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix show password toggle (#5979)
This commit is contained in:
parent
34e06351fb
commit
b8d2c551e0
@ -49,7 +49,6 @@ export class HaFormString extends LitElement implements HaFormElement {
|
||||
>
|
||||
<ha-icon-button
|
||||
toggles
|
||||
.active=${this._unmaskedPassword}
|
||||
slot="suffix"
|
||||
.icon=${this._unmaskedPassword ? "hass:eye-off" : "hass:eye"}
|
||||
id="iconButton"
|
||||
@ -72,8 +71,8 @@ export class HaFormString extends LitElement implements HaFormElement {
|
||||
`;
|
||||
}
|
||||
|
||||
private _toggleUnmaskedPassword(ev: Event): void {
|
||||
this._unmaskedPassword = (ev.target as any).active;
|
||||
private _toggleUnmaskedPassword(): void {
|
||||
this._unmaskedPassword = !this._unmaskedPassword;
|
||||
}
|
||||
|
||||
private _valueChanged(ev: Event): void {
|
||||
|
@ -176,7 +176,6 @@ export class HaVoiceCommandDialog extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<ha-icon-button
|
||||
.active=${Boolean(this.results)}
|
||||
icon="hass:microphone"
|
||||
@click=${this._toggleListening}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user