Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-class screwed up #7780

Closed
synergetic opened this issue Jun 11, 2014 · 1 comment
Closed

ng-class screwed up #7780

synergetic opened this issue Jun 11, 2014 · 1 comment

Comments

@synergetic
Copy link

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?

@synergetic
Copy link
Author

Well it seems to be fixed in 1.2.17.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant