Merge pull request #1242 from buster-so/nate/suggestion-unit-tests

Wait 1 render cycle before setting interaction state
This commit is contained in:
Nate Kelley 2025-10-01 20:07:24 -06:00 committed by GitHub
commit b12601c7e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ export const MentionInputSuggestions = forwardRef<
onSuggestionItemClick?.(params);
if (closeSuggestionOnSelect && params.closeOnSelect !== false) setHasClickedSelect(true);
setIsInteracting(false);
requestAnimationFrame(() => {
setIsInteracting(false);
});
}
);