【问题标题】:ui-select not rendering select option in IE8ui-select 不呈现 IE8 中的选择选项
【发布时间】:2015-02-07 17:37:37
【问题描述】:

我正在使用来自 HERE 的 ui-select,它在所有浏览器中都能正常运行,但在 IE 8 中,我无法看到与在来自HERE的页面,您可以使用PLUNKER作为参考。

我试过了,但没有成功。有人可以帮我解决这个问题或提示我应该如何解决这个问题。

 <ui-select ng-model="country.selected" theme="selectize" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="country in countries | filter: $select.search">
  <span ng-bind-html="country.name | highlight: $select.search"></span>
  <small ng-bind-html="country.code | highlight: $select.search"></small>
</ui-select-choices>
 </ui-select>

【问题讨论】:

    标签: javascript angularjs filter autocomplete


    【解决方案1】:

    正如 github 问题中所建议的,您需要在 IE8 知道如何处理这些自定义元素之前加载这些行

    document.createElement('ui-select');
    document.createElement('ui-select-match');
    document.createElement('ui-select-choices');
    

    【讨论】:

    • 是的,我已经这样做了,但仍然没有渲染视图
    猜你喜欢
    • 1970-01-01
    • 2014-02-16
    • 2022-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多