Skip to content

Issue with Spacebar Closing the Dropdown in Advanced Select #528

Closed
@rashadmehtab

Description

@rashadmehtab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions