We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d415e02 commit 03b3ea5Copy full SHA for 03b3ea5
package.json
@@ -42,6 +42,7 @@
42
"webpack-dev-server": "^1.14.0"
43
},
44
"dependencies": {
45
+ "vue": "^1.0.25",
46
"vue-popup": "^0.1.8"
47
}
-}
48
+}
src/msgbox.vue
@@ -263,11 +263,11 @@
263
264
visible(val) {
265
if (val && this.$type === 'prompt') {
266
- setTimeout(() => {
+ Vue.nextTick(() => {
267
if (this.$els.input) {
268
this.$els.input.focus();
269
270
- }, 500);
+ });
271
272
273
0 commit comments