From b340d632544df34d222dc09805c6221c2c95a60f Mon Sep 17 00:00:00 2001 From: An Phan Date: Sun, 3 Jan 2016 16:23:29 +0800 Subject: [PATCH] Fix the autofocus bug --- resources/assets/js/app.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/app.vue b/resources/assets/js/app.vue index e82b759e..a037e73a 100644 --- a/resources/assets/js/app.vue +++ b/resources/assets/js/app.vue @@ -32,6 +32,7 @@ import queueStore from './stores/queue'; import preferenceStore from './stores/preference'; import playback from './services/playback'; + import focusDirective from './directives/focus'; import ls from './services/ls'; export default { @@ -254,7 +255,7 @@ }); // Register the global directives - Vue.directive('koel-focus', require('./directives/focus')); + Vue.directive('koel-focus', focusDirective);