Commit 9e375e67126afe26e43170c2472b8326918d1810

Authored by Sergio Crisostomo
1 parent ed4bb143

Focus only if component has input (3769)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/date-picker/picker.vue
@@ -668,7 +668,7 @@ @@ -668,7 +668,7 @@
668 this.reset(); 668 this.reset();
669 }, 669 },
670 focus() { 670 focus() {
671 - this.$refs.input.focus(); 671 + this.$refs.input && this.$refs.input.focus();
672 } 672 }
673 }, 673 },
674 watch: { 674 watch: {