Skip to content

Commit

Permalink
Merge pull request #410 from ziyaDev/main
Browse files Browse the repository at this point in the history
Fix: Wrap suggestionItems with <EditorCommandList>
  • Loading branch information
andrewdoro authored Jul 15, 2024
2 parents 6da194c + 0099204 commit fb42c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/docs/guides/tailwind/slash-command.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Components are wrapper over cmdk
<EditorContent>
<EditorCommand className='z-50 h-auto max-h-[330px] w-72 overflow-y-auto rounded-md border border-muted bg-background px-1 py-2 shadow-md transition-all'>
<EditorCommandEmpty className='px-2 text-muted-foreground'>No results</EditorCommandEmpty>
<EditorCommandList>
{suggestionItems.map((item) => (
<EditorCommandItem
value={item.title}
Expand All @@ -187,6 +188,7 @@ Components are wrapper over cmdk
</div>
</EditorCommandItem>
))}
</EditorCommandList>
</EditorCommand>
</EditorContent>
...
Expand Down

0 comments on commit fb42c23

Please sign in to comment.