Skip to content

Commit ff8971b

Browse files
jkcsmatthewlipski
andauthored
feat: SuggestionMenuController.tsx support ignoreQueryLength (#1072)
Co-authored-by: matthewlipski <matthewlipski@gmail.com>
1 parent c2968d0 commit ff8971b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/src/components/SuggestionMenu/SuggestionMenuController.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ export function SuggestionMenuController<
130130
if (
131131
!isMounted ||
132132
!state ||
133-
(minQueryLength &&
133+
(!state?.ignoreQueryLength &&
134+
minQueryLength &&
134135
(state.query.startsWith(" ") || state.query.length < minQueryLength))
135136
) {
136137
return null;

0 commit comments

Comments
 (0)