We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f23745 commit ca3657eCopy full SHA for ca3657e
js/angular-ui-router-css.js
@@ -175,9 +175,11 @@
175
var definitionPromise = loadStyleDefinition(definition, {
176
insertBefore: linkElementPlaceholder
177
});
178
-
179
- // temporarily disable the stylesheet until the state has been fully resolved to give a smooth transition
180
- definition.element.disabled = true;
+
+ definitionPromise.then(function() {
+ // temporarily disable the stylesheet until the state has been fully resolved to give a smooth transition
181
+ definition.element.disabled = true;
182
+ });
183
184
// add the stylesheet promise to the definition
185
definition.promise = definitionPromise;
0 commit comments