Skip to content

Commit

Permalink
add back container cursor validation check
Browse files Browse the repository at this point in the history
Co-authored-by: DylanDylann <141406735+DylanDylann@users.noreply.github.com>
  • Loading branch information
danstepanov and DylanDylann authored Mar 7, 2025
1 parent 58b7e50 commit 6ad3297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AutoCompleteSuggestions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function AutoCompleteSuggestions<TSuggestion>({measureParentContainerAndReportCu
}, [measureParentContainerAndReportCursor, windowHeight, windowWidth, keyboardHeight, shouldUseNarrowLayout, suggestionsLength, bottomInset, topInset, isKeyboardAnimatingRef]);

// Only prevent rendering if we have no suggestions
if (!suggestionsLength) {
if ((containerState.width === 0 && containerState.left === 0 && containerState.bottom === 0) || !suggestionsLength) {
return null;
}

Expand Down

0 comments on commit 6ad3297

Please sign in to comment.