Description
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:
- Open the advanced select input field (e.g., for selecting a country).
- Begin typing "Northern".
- Press the spacebar to continue typing "Ireland".
- 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