如果在IOS聚焦于一个输入字段后单击md select,则会导致出现白色屏幕



在IOS上,如果用户单击文本输入字段内部(IOS将其聚焦),然后在键盘上选择done,然后单击md select,则会查看白色屏幕,直到用户单击屏幕。这似乎在一定程度上是由于内部监督办公室对初始输入领域的关注。如果在单击md选择之前缩小焦点,则不会出现白屏问题。

    <md-input-container>
      <label for="fname" class="required">First Name</label>
      <!-- user clicks on this, IOS focuses on it -->
      <input type="text" id="fname" required="required" data-ng-model="occupant.fname">
    </md-input-container>
    <md-input-container>
      <!-- user clicks on this after IOS focus on above element, white-screen occurs -->
      <!-- white-screen does not occur if you zoom out of the focus before clicking on this -->
      <md-select data-ng-model="bed.occupants" placeholder="occupants">
          <md-option data-ng-value="occupant" data-ng-repeat="occupant in occupants">
            {{ occupant.fname }}
          </md-option>
      </md-select>
    </md-input-container>

通过将此元信息添加到您的主html文件来修复此问题

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">

最新更新