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

Commit 69607e0

Browse files
devversionhansl
authored andcommitted
fix(autocomplete): properly run animation for dialog in demo. (#9437)
* 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.
1 parent 39812c8 commit 69607e0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/autocomplete/demoInsideDialog/dialog.tmpl.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<md-dialog aria-label="Autocomplete Dialog Example" ng-cloak>
1+
<md-dialog aria-label="Autocomplete Dialog Example">
2+
23
<md-toolbar>
34
<div class="md-toolbar-tools">
45
<h2>Autocomplete Dialog Example</h2>
@@ -9,7 +10,7 @@ <h2>Autocomplete Dialog Example</h2>
910
</div>
1011
</md-toolbar>
1112

12-
<md-dialog-content>
13+
<md-dialog-content ng-cloak>
1314
<div class="md-dialog-content">
1415
<form ng-submit="$event.preventDefault()">
1516
<p>Use <code>md-autocomplete</code> to search for matches from local or remote data sources.</p>

src/core/services/layout/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210

211211
/**
212212
* Tail-hook ngCloak to delay the uncloaking while Layout transformers
213-
* finish processing. Eliminates flicker with Material.Layoouts
213+
* finish processing. Eliminates flicker with Material.Layouts
214214
*/
215215
function buildCloakInterceptor(className) {
216216
return [ '$timeout', function($timeout){

0 commit comments

Comments
 (0)