This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-class screwed up #7780
Closed
Description
I was using bootstrap 3.0.2 glyphicons with ng-class, and it worked fine with Angular JS 1.2.14. After moving 1.2.16, the icons were not displaying correctly when classes are dynamically changed. Below are part of js code of my tree directive:
var iconElem = document.createElement('I');
iconElem.className = "my-tree-node-icon";
iconElem.setAttribute("ng-class", "{ 'glyphicon glyphicon-folder-close': !expanded && " +
"item.is_parent, 'glyphicon glyphicon-folder-open': expanded && " +
"item.is_parent, 'glyphicon glyphicon-file': !item.is_parent }");
wrapperElem.appendChild(iconElem);
There seems to be the same issue before:
#6419
Is this bug reocurring again?
Metadata
Metadata
Assignees
Labels
No labels