Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrow-down key event inside searchField in the Spotlight component will skip first element #5992

Closed
1 of 2 tasks
LarsEjaas opened this issue Mar 27, 2024 · 0 comments · Fixed by #5995
Closed
1 of 2 tasks

Comments

@LarsEjaas
Copy link

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.7.0

What package has an issue?

@mantine/spotlight

What framework do you use?

Vite

In which browsers you can reproduce the issue?

Chrome

Describe the bug

When I press keydown in the Search field in the spotlight component focus is set on the second element in the list.
How to replicate:

  1. Go to: https://mantine.dev/x/spotlight/
  2. click the "Open spotlight" button
  3. press arow-down on the keyboard
  4. everything works as intended
  5. close the spotlight
  6. open the spotlight overlay again by clicking the "Open spotlight" button again
  7. press arrow-down again
  8. now the second element in the list is selected (first element is skipped).

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant