|
@@ -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);
|