Skip to content

Commit cf496e4

Browse files
authoredOct 24, 2024
Update src/OptionList.tsx
1 parent 729c613 commit cf496e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/OptionList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
200200
() => searchValue ? null : (loadData as any),
201201
[searchValue, treeExpandedKeys || expandedKeys],
202202
([preSearchValue], [nextSearchValue, nextExcludeSearchExpandedKeys]) =>
203-
preSearchValue !== nextSearchValue && (nextSearchValue || nextExcludeSearchExpandedKeys)
203+
preSearchValue !== nextSearchValue && !!(nextSearchValue || nextExcludeSearchExpandedKeys)
204204
);
205205

206206
// ========================== Render ==========================

0 commit comments

Comments
 (0)