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

Autocompletion popup disappears with mouseup event outside of input field #2867

Open
dennismeister93 opened this issue Sep 30, 2024 · 1 comment · May be fixed by #2937
Open

Autocompletion popup disappears with mouseup event outside of input field #2867

dennismeister93 opened this issue Sep 30, 2024 · 1 comment · May be fixed by #2937
Labels
bug Something isn't working
Milestone

Comments

@dennismeister93
Copy link

Current Behavior

Hey :) I am wondering if the following behaviour is expected or actually an issue:

When using the autocompletion component the functionality works without a problem, but when selecting the input text and releasing the mouse click outside of the input field element the popup is disappearing. It only appears again, when clicking somewhere else to lose focus of the input field and focusing the input field again. You can find an example from your documentation:

autocompletion_behaviour

Expected Behavior

The popup should stay visible after releasing the mouseup event outside of the input field element but the focus is still on the input field.

Steps To Reproduce

  1. Use the standard autocompletion component
  2. Trigger the autocompletion by typing anything
  3. Select the text inside the input field by clicking and marking the text part
  4. Release the mouse click outside of the input field
  5. Click somewhere to lose focus from the input field
  6. Click the input field again to get focus on it

Link to Reproduction / Stackblitz

No response

More Information

No response

@dennismeister93 dennismeister93 added the bug Something isn't working label Sep 30, 2024
@endigo9740
Copy link
Contributor

endigo9740 commented Sep 30, 2024

@dennismeister93 I can clarify that this is not intended behavior. To set expectations here, I also want to make it clear likely not something we (the Skeleton team) will address directly. We're currently prioritizing Skeleton v3, which will replace Popover features with a new solution. We're evaluating two:

Right now our goal is to actually ship both, but with Zag likely being the solution leading up to launch.

All that said, if this is an issue that's troubling you, I might suggest investing your own fix and sending a PR contribution - which we will gladly accept. That or investigating the use of Floating UI directly, or substituting with a similar tool.

@endigo9740 endigo9740 added this to the v2.0 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants