Angular material 2 - input box not rendering properly as expected

时间秒杀一切 提交于 2020-01-06 06:42:47

问题


I am using Angular material 2 for angular 4 application along with angular flex layout. Below is the simple form

<div fxLayoutGap="5px" fxLayout="column">
      <mat-form-field class="full-width">
        <input matInput placeholder="Email Id" type="text" [(ngModel)]="emailId">
      </mat-form-field>

      <mat-form-field class="full-width">
        <input matInput placeholder="Password" type="password" [(ngModel)]="password">
      </mat-form-field>

      <mat-form-field class="full-width">
        <input matInput placeholder="Confirm Password" type="password">
      </mat-form-field>
...
</div>

Sometimes it is showing base line but sometimes it is not behaving as expected. I tried on almost all browser but still facing same issue.

It is happing when you reduce/increase the size of your browser.

It is not happening because of input type is password

来源:https://stackoverflow.com/questions/49706438/angular-material-2-input-box-not-rendering-properly-as-expected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!