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

Autocomplete: Focus issues with the Autocomplete component (when data is empty) #3419

Open
kimroen opened this issue Mar 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kimroen
Copy link
Contributor

kimroen commented Mar 26, 2024

🐛 Bug Report

In some scenarios such as the one described below, the Autocomplete component does not allow moving focus away from it through normal means (like clicking outside of it, clicking a different element, or tabbing with the keyboard).

This causes some unexpected behavior as you can see in this GIF:

CleanShot 2024-03-19 at 15 24 10

The second autocomplete has this bug, the first one does not.

Interestingly, the top item does open its drawer when being clicked, but the second input still also has the focus state and styling.

To Reproduce

One way of reproducing this behavior is to set open_on_focus and have an empty data property. Here's a CodeSandbox recreating this.

Both these inputs have open_on_focus: the top one has some data and behaves as expected, but the bottom one will not allow moving focus elsewhere using the mouse.

Expected behavior

The autocomplete component should allow navigating away by any normal input method.

Eufemia Version

10.22.0

@tujoworker tujoworker self-assigned this Apr 3, 2024
@tujoworker tujoworker added the bug Something isn't working label Apr 3, 2024
@kimroen
Copy link
Contributor Author

kimroen commented Jun 28, 2024

Retested on 10.38 and updated the codesandbox since I saw that there has been some fixes related to Autocomplete. This issue remains on this version, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants