mirror of https://github.com/ElemeFE/element
Select: focus input in setSoftFocus when available (#10801)
parent
e8e2fc425b
commit
9a1afc3b33
|
@ -683,7 +683,10 @@
|
|||
|
||||
setSoftFocus() {
|
||||
this.softFocus = true;
|
||||
(this.$refs.input || this.$refs.reference).focus();
|
||||
const input = this.$refs.input || this.$refs.reference;
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
},
|
||||
|
||||
getValueIndex(arr = [], value) {
|
||||
|
|
Loading…
Reference in New Issue