0
각도 재료 2로 input
을 만들려고 노력 중입니다. 가시성 버튼을 누르면 focus
이 input
에 표시되지 않도록하려면 어떻게해야합니까? 여기 그것이 작동하는 방법어떻게 입력에 집중할 수 없습니까?
당신이 볼 수 material.angular.io
<mat-form-field>
<input
#mPswd
matInput
type="password"
placeholder="Ваш мастер-пароль"
[type]="hide ? 'password' : 'text'"
>
<mat-icon
class="unselectable"
matSuffix
(click)="hide = !hide"
>
{{hide ? 'visibility' : 'visibility_off'}}
</mat-icon>
</mat-form-field>
(클릭) = "onIconClick (** $ ** 이벤트)"가 작동합니다! 고맙습니다! –
@FoprtaTheG. 좋은 포주, 내 말에 오타. – LLai