From 87ed082659f1b8c2533e1a286a9a566b8d803002 Mon Sep 17 00:00:00 2001 From: Echo Wang Date: Wed, 30 Aug 2017 19:41:29 +0800 Subject: [PATCH] Update index.js fix issue. if there has 2 or more active focus in app, it will loop ......... --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 20c8336..2573818 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ export var focus = { } } - if (binding.value) el.focus(); + if (binding.value && binding.oldValue !== binding.value) el.focus(); else el.blur(); }, };