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

Issue with Spacebar Closing the Dropdown in Advanced Select #528

Open
rashadmehtab opened this issue Dec 16, 2024 · 1 comment
Open

Issue with Spacebar Closing the Dropdown in Advanced Select #528

rashadmehtab opened this issue Dec 16, 2024 · 1 comment

Comments

@rashadmehtab
Copy link

Summary

The issue occurs in an advanced select component where pressing the spacebar in the search input causes the dropdown to close unexpectedly. This prevents users from entering multi-word search terms, such as "United Arab Emirates." The dropdown should remain open when typing a space to allow users to continue entering their search query.

Steps to Reproduce

Description:

When using the advanced select input to search for a country name (e.g., "Northern Ireland"), the dropdown unexpectedly closes when pressing the spacebar. This prevents users from entering multi-word names, such as "Northern Ireland, United Arab Emirates" into the search field.

Steps to Reproduce:

  1. Open the advanced select input field (e.g., for selecting a country).
  2. Begin typing "Northern".
  3. Press the spacebar to continue typing "Ireland".
  4. The dropdown immediately closes when the spacebar is pressed.

Demo Link

https://preline.co/docs/advanced-select.html#search-inside-dropdown

Expected Behavior

The dropdown should remain open when pressing the spacebar, allowing users to type multi-word names like "Northern Ireland" without the dropdown closing prematurely.

Actual Behavior

Pressing the spacebar causes the dropdown to close, making it difficult to enter multi-word search terms.

Screenshots

No response

@zikrimuhammad09
Copy link

Up

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

No branches or pull requests

2 participants