From 74285c8357a378410296ac2d558ff96634ba03e3 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 12 Sep 2018 10:44:10 +0100 Subject: [PATCH] Fixed problem with v-if --- src/directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directive.js b/src/directive.js index fefbed0..ea077ff 100644 --- a/src/directive.js +++ b/src/directive.js @@ -186,7 +186,7 @@ export default { expression: binding.value }; const args = arguments; - el[ctx].vm.$on('hook:mounted', function () { + el[ctx].vm.$on('hook:updated', function () { el[ctx].vm.$nextTick(function () { if (isAttached(el)) { doBind.call(el[ctx], args);