Skip to content

Commit

Permalink
fix(@lexical/playground): Emoji menu item not getting targeted styles (
Browse files Browse the repository at this point in the history
  • Loading branch information
daltnd authored May 13, 2024
1 parent 32279f4 commit 867d449
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions packages/lexical-playground/src/plugins/EmojiPickerPlugin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,19 @@ export default function EmojiPickerPlugin() {
<div className="typeahead-popover emoji-menu">
<ul>
{options.map((option: EmojiOption, index) => (
<div key={option.key}>
<EmojiMenuItem
index={index}
isSelected={selectedIndex === index}
onClick={() => {
setHighlightedIndex(index);
selectOptionAndCleanUp(option);
}}
onMouseEnter={() => {
setHighlightedIndex(index);
}}
option={option}
/>
</div>
<EmojiMenuItem
key={option.key}
index={index}
isSelected={selectedIndex === index}
onClick={() => {
setHighlightedIndex(index);
selectOptionAndCleanUp(option);
}}
onMouseEnter={() => {
setHighlightedIndex(index);
}}
option={option}
/>
))}
</ul>
</div>,
Expand Down

0 comments on commit 867d449

Please sign in to comment.