diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 7a5f54cf..4f1b7b18 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -668,7 +668,7 @@ this.reset(); }, focus() { - this.$refs.input.focus(); + this.$refs.input && this.$refs.input.focus(); } }, watch: {