ngx-chips tag-input-dropdown在iPhone中不显示autosuggest [英] ngx-chips tag-input-dropdown does not show autosuggest in iPhone

查看:59
本文介绍了ngx-chips tag-input-dropdown在iPhone中不显示autosuggest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为电子邮件抄送字段实现了ngx-chips.它在使用Chrome的Android手机中完美运行.但是,在iPhone中,自动提示没有显示.

I have implemented ngx-chips for an email CC field. It works perfectly in my Android phone using Chrome. But, in iPhone, the autosuggestion does not show up.

<div class="required form-group col-md-12 col-sm-12 col-xs-12" >
    <label class="control-label" for="email.emailCc">CC:</label>
       <tag-input [(ngModel)]="emailList"  [onlyFromAutocomplete]="true" theme='bootstrap'>
        <tag-input-dropdown [autocompleteObservable]="items" [showDropdownIfEmpty]="true" [dynamicUpdate]="false">
        </tag-input-dropdown>
       </tag-input>
 </div>

在iPhone中

在Android中

请帮助.

推荐答案

在global.scss中添加了以下行,以便IOS显示下拉内容,

Added following line in global.scss for IOS to show dropdown content,

div.ng2-dropdown-menu.ng2-dropdown-menu---width--4.ng2-dropdown-menu--open {
  display: block !important; // to display the drop down content
  max-height: 40vh !important;  // for scrolling of suggestion list
}

但是仍然不如android上的好.滚动屏幕即可滚动列表.

But still it is not good as it is on android. Scrolling the screen scrolls the list with it.

这篇关于ngx-chips tag-input-dropdown在iPhone中不显示autosuggest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆