Skip to content

Commit 837d7d8

Browse files
dd32claude
andcommitted
Fix suggestion list spacing and spinner staying visible
- Wrap TextHighlight in a span to prevent mark fragments becoming separate flex items with gaps between them - Reset isSearching when search is cleared below minimum length Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ee7803e commit 837d7d8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

build/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/MultiAuthorPlugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function DirectAdd( { postId, existingIds, onAdd } ) {
6565
useEffect( () => {
6666
if ( search.length < 2 ) {
6767
setSuggestions( [] );
68+
setIsSearching( false );
6869
return;
6970
}
7071
setIsSearching( true );
@@ -118,7 +119,7 @@ function DirectAdd( { postId, existingIds, onAdd } ) {
118119
width={ 28 }
119120
height={ 28 }
120121
/>
121-
<TextHighlight text={ user.name } highlight={ search } />
122+
<span><TextHighlight text={ user.name } highlight={ search } /></span>
122123
</HStack>
123124
<Button
124125
variant="secondary"

0 commit comments

Comments
 (0)