Skip to content

Commit 19805e6

Browse files
committed
fix fail select when search by key #2759
fix fail select when search by key #2759
1 parent 2ea1c06 commit 19805e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/Dropdown/Dropdown.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Dropdown extends React.Component {
6666
textContent = textContent.toLowerCase()
6767
const search = searchKey.toLowerCase()
6868
if (textContent.startsWith(search)) {
69+
childSelectionIndex = i
6970
listChild[i].focus()
7071
return true
7172
}

0 commit comments

Comments
 (0)