Gerald 6 лет назад
Родитель
Сommit
21cb552ea7
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/options/views/message.vue

+ 5 - 1
src/options/views/message.vue

@@ -34,7 +34,11 @@ export default {
   },
   },
   mounted() {
   mounted() {
     const input = this.$el.querySelector('input');
     const input = this.$el.querySelector('input');
-    if (input) input.focus();
+    if (input) {
+      setTimeout(() => {
+        input.focus();
+      });
+    }
   },
   },
   beforeDestroy() {
   beforeDestroy() {
     const i = dismissers.indexOf(this.dismiss);
     const i = dismissers.indexOf(this.dismiss);