Skip to content

Commit 10b1a7b

Browse files
committed
fix(select): fix the malfunction of the select component when automatically pulling down focus
1 parent cfb7481 commit 10b1a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/renderless/src/select/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ export const handleOptionSelect =
875875

876876
state.isSilentBlur = byClick
877877

878-
api.setSoftFocus()
878+
if (!props.automaticDropdown) api.setSoftFocus()
879879

880880
if (state.visible) {
881881
return

0 commit comments

Comments
 (0)