From ccf93c0890e26b6356b5c85fa02a070fd5b785c5 Mon Sep 17 00:00:00 2001 From: An Phan Date: Sat, 25 Jun 2016 22:44:39 +0800 Subject: [PATCH] =?UTF-8?q?Make=20Ameri=E2=80=A6=20erm,=20koel-focus=20gre?= =?UTF-8?q?at=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/directives/focus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/directives/focus.js b/resources/assets/js/directives/focus.js index fbb16e2a..2d58a179 100644 --- a/resources/assets/js/directives/focus.js +++ b/resources/assets/js/directives/focus.js @@ -4,11 +4,11 @@ import Vue from 'vue'; * A simple directive to set focus into an input field when it's shown. */ export default { - bind (el, { value }) { + update(el, { value }) { if (!value) { return; } Vue.nextTick(() => el.focus()); - } + }, };