Skip to content

Some Feedback #1

@cspeer

Description

@cspeer

Hi @erwinstone ,

thanks a lot for putting in the work and creating a vanilla js, bootstrap 5 select to dropdown extension. This is really great!

Here are a few things I noticed while using it with one of my sites:

Sometimes, the dropdown's position appears to be slightly off

I'm not yet sure what causes it.

Screenshot 2022-02-12 at 18 37 45

I18n / Custom text

It would be cool, to be able to customise the search input's placeholder via a data-attribute data-bss-search-placeholder="Suchen ..." for example.

data-bss-clear not working

It seems like the data-bss-clear is not doing anything. When I add the data-attribute, the x does not show up.
It would also be cool to have a clear method, that can be called programmatically.

Multi selects: Leave the dropdown open when

What I found was a bit annoying is that the dropdown closes itself after selecting an option from a multi select. I'd say if a multi select is provided, it's likely that the user would like to select multiple options at once. Maybe have an option to enable or disable this?

Optionally adjust to content width

As you can see here:
Screenshot 2022-02-12 at 18 33 42
The content is quite long/wide. So, it would be great to have an option to tell the dropdown to grow as big as the actual content is.

Let me know what you think! I really appreciate you building this extension!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions