javascript - Angular 4 - IE11 : font-awesome is not working with angular2-multiselect-dropdown on IE11

标签 javascript css angular internet-explorer font-awesome

在我的 Angular 4.0.0 应用中,我正在使用 angular2-multiselect-dropdown:

Official documentation

在我的 package.json 中,我使用 font-awesome 安装它,让它工作:

"angular2-multiselect-dropdown": "^1.2.3",
"font-awesome": "^4.7.0",

它在所有浏览器下运行良好,IE11

我的场景如下:

  • 这是我的多选:

enter image description here

选择一个元素时,一切顺利

但是当取消选择 X 图标时:

enter image description here

IE 11 下出错:只是它没有取消选择,并且控制台中显示任何错误,尽管从复选框中取消选择很顺利:

enter image description here

  • IE11
  • 取消选择时,问题特别是 X 图标

我试图在 index.html 的头部添加这个标签:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

但这没有用。

有什么建议吗?

最佳答案

我已经通过将 angular2-multiselect-dropdown 升级到 1.3.6 版本解决了这个问题。

只需在 package.json

中更新它
"angular2-multiselect-dropdown": "1.3.6",

关于javascript - Angular 4 - IE11 : font-awesome is not working with angular2-multiselect-dropdown on IE11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47348650/

相关文章:

javascript - 如何在 macOS 上安装 Nodemon Nodejs? nodemon 保持显示 : command not found

javascript - 尽管选择了范围,selection.toString() 仍返回空字符串

javascript - apply() 不适用于 Node.js eventemitter 的 emit() 函数

css - 使用 Twitter Bootstrap 居中列

html - Bootstrap 3 : Display panels inside their wells on browser resize

node.js - 用 Angular 突出显示?

javascript - 子页面图片加载失败

jquery - 如何在 html 中使用 fly on checkbox 添加多个东西?

javascript - 如何在 Angular Material 表中定义索引

angular - Visual Studio Code 找不到 Angular 变量的所有引用