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 43c1edfCopy full SHA for 43c1edf
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,9 @@
263
264
visible(val) {
265
if (val && this.$type === 'prompt') {
266
- setTimeout(() => {
267
- if (this.$els.input) {
268
- this.$els.input.focus();
269
- }
270
- }, 500);
+ Vue.nextTick(() => {
+ this.$els.input.focus();
+ });
271
272
273
0 commit comments