简体   繁体   English

Angular 4-IE11:font-awesome无法与IE11上的angular2-multiselect-dropdown一起使用

[英]Angular 4 - IE11 : font-awesome is not working with angular2-multiselect-dropdown on IE11

Under my Angular 4.0.0 app , am using angular2-multiselect-dropdown : 在我的Angular 4.0.0应用程序下,正在使用angular2-multiselect-dropdown

Official documentation 官方文件

in my package.json am installing it with font-awesome , to get it work : 在我的package.json中 ,使用font-awesome进行安装,以使其正常工作:

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

It goes well under all browsers exepte IE11 在所有浏览器(例如IE11)下都运行良好

My scenario is the following : 我的情况如下:

  • this is my multiselect : 这是我的多选

在此处输入图片说明

When selecting an item , that goes well 选择一个项目时,效果很好

But when deselcting from the X icon : 不过从X图标deselcting时:

在此处输入图片说明

that goes wrong under IE 11 : simply it's not deselected , and any error is shown in the console , although the deselection goes well from the checkbox: IE 11下出现问题:只是未取消选中它,并且控制台中显示了任何错误,尽管取消选中的复选框很不错:

在此处输入图片说明

  • The problem is specifically with the X icon when deselection under IE11 问题特别是在IE11取消选择时带有X图标

i have tried to use to add this tag in my head part in the index.html : 我试图用这个标签添加到index.html的头部:

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

But that didn't work. 但这没有用。

Any suggestions ? 有什么建议么 ?

I have resolved it with the upgrade of the angular2-multiselect-dropdown to the 1.3.6 version. 我已通过将angular2-multiselect-dropdown升级到1.3.6版本解决了该问题。

Just update it in the package.json 只需在package.json中对其进行更新

"angular2-multiselect-dropdown": "1.3.6",

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM