Commit 9a1afc3b authored by 杨奕's avatar 杨奕 Committed by GitHub

Select: focus input in setSoftFocus when available (#10801)

parent e8e2fc42
...@@ -683,7 +683,10 @@ ...@@ -683,7 +683,10 @@
setSoftFocus() { setSoftFocus() {
this.softFocus = true; 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) { getValueIndex(arr = [], value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment