Skip to content

Commit 90cdcdb

Browse files
committed
remove v-cloak for conditional compiles (fix vuejs#1028)
1 parent 145fed7 commit 90cdcdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/directive.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ var p = Directive.prototype
5252
*/
5353

5454
p._bind = function (def) {
55-
if (this.name !== 'cloak' && this.el && this.el.removeAttribute) {
55+
if (
56+
(this.name !== 'cloak' || this.vm._isCompiled) &&
57+
this.el && this.el.removeAttribute
58+
) {
5659
this.el.removeAttribute(config.prefix + this.name)
5760
}
5861
if (typeof def === 'function') {

0 commit comments

Comments
 (0)