Focus only if component has input (3769)
This commit is contained in:
parent
ed4bb14303
commit
9e375e6712
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
focus() {
|
focus() {
|
||||||
this.$refs.input.focus();
|
this.$refs.input && this.$refs.input.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue