Skip to content

Commit

Permalink
fix: add missing keyboard navigation to search results
Browse files Browse the repository at this point in the history
Just to keep it consistent with the category based emoji list.

Relates to PS-21279.
  • Loading branch information
daelmaak committed Jul 2, 2024
1 parent bbbd077 commit 6583648
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/emoji-mart/src/components/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,12 @@ export default class Picker extends Component {
if (!searchResults) return null

return (
<div class="category" ref={this.refs.search}>
<div
class="category"
ref={this.refs.search}
role="listbox"
onKeyDown={this.handleEmojisKeyDown}
>
<div class={`sticky padding-small align-${this.dir[0]}`}>
{I18n.categories.search}
</div>
Expand Down

0 comments on commit 6583648

Please sign in to comment.