We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793a5ac commit 31862e1Copy full SHA for 31862e1
components/vc-tree-select/src/SearchInput.jsx
@@ -70,11 +70,12 @@ const SearchInput = {
70
*/
71
focus (isDidMount) {
72
if (this.inputRef.current) {
73
- this.inputRef.current.focus()
74
if (isDidMount) {
75
setTimeout(() => {
76
this.inputRef.current.focus()
77
}, 0)
+ } else { // set it into else, Avoid scrolling when focus
78
+ this.inputRef.current.focus()
79
}
80
81
},
0 commit comments