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

Commit

Permalink
fix(ngCloak): hide element even when CSS 'display' is set
Browse files Browse the repository at this point in the history
Previously an element like
<div class="foo ng-cloak">...</div>
would still be annoyingly visible if it matched a CSS rule like
.foo { display: inline-block; }, overriding ng-cloak's display: none.
  • Loading branch information
vin authored and IgorMinar committed Jul 3, 2013
1 parent c21ab0a commit 3ffddad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/angular.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
.ng-cloak, .x-ng-cloak {
display: none;
display: none !important;
}

ng\:form {
Expand Down
2 changes: 1 addition & 1 deletion src/ng/directive/ngCloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* <pre>
* [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
* display: none;
* display: none !important;
* }
* </pre>
*
Expand Down

0 comments on commit 3ffddad

Please sign in to comment.