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

Closed
rashadmehtab opened this issue Dec 16, 2024 · 6 comments
Closed

Issue with Spacebar Closing the Dropdown in Advanced Select #528

rashadmehtab opened this issue Dec 16, 2024 · 6 comments

Comments

@rashadmehtab
Copy link

rashadmehtab commented Dec 16, 2024

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

@oliverhaas
Copy link

In our application we also observe this error, but also sometimes the spacebar just does not do anything, e.g. typing "Northern Ireland" will end up as "NorthernIreland". If that bug is not fixed by fixing this issue here, I will go into more detail...

@remedix
Copy link

remedix commented Feb 11, 2025

Noticed the same thing as everybody else. It makes searching with two words very difficult

@jmina01
Copy link

jmina01 commented Feb 21, 2025

I have the same problem, i reported it
I need the search allow the input 2 or more words

@jahaganiev
Copy link
Member

The issue has been fixed internally and it will be available soon with the next release. Thanks!

@jahaganiev
Copy link
Member

The fixies are live with v3.0 Preline UI release.

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

6 participants