Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(autocomplete): properly run animation for dialog in demo. (#9437)
Browse files Browse the repository at this point in the history
* The autocomplete demo with the dialog currently logs a warning for the `ng-cloak` being present on the dialog template.
  Removing `ng-cloak` removes that warning and also fixes the warning in the console.
  • Loading branch information
devversion authored and hansl committed Aug 31, 2016
1 parent 39812c8 commit 69607e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/autocomplete/demoInsideDialog/dialog.tmpl.html
@@ -1,4 +1,5 @@
<md-dialog aria-label="Autocomplete Dialog Example" ng-cloak>
<md-dialog aria-label="Autocomplete Dialog Example">

<md-toolbar>
<div class="md-toolbar-tools">
<h2>Autocomplete Dialog Example</h2>
Expand All @@ -9,7 +10,7 @@ <h2>Autocomplete Dialog Example</h2>
</div>
</md-toolbar>

<md-dialog-content>
<md-dialog-content ng-cloak>
<div class="md-dialog-content">
<form ng-submit="$event.preventDefault()">
<p>Use <code>md-autocomplete</code> to search for matches from local or remote data sources.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/core/services/layout/layout.js
Expand Up @@ -210,7 +210,7 @@

/**
* Tail-hook ngCloak to delay the uncloaking while Layout transformers
* finish processing. Eliminates flicker with Material.Layoouts
* finish processing. Eliminates flicker with Material.Layouts
*/
function buildCloakInterceptor(className) {
return [ '$timeout', function($timeout){
Expand Down

0 comments on commit 69607e0

Please sign in to comment.