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

Select SelectionMode #198

Open
jachin opened this issue Sep 15, 2022 · 0 comments
Open

Select SelectionMode #198

jachin opened this issue Sep 15, 2022 · 0 comments
Labels
enhancement New feature or request idea Ideas that still need additional development

Comments

@jachin
Copy link

jachin commented Sep 15, 2022

We need a new SelectionMode. We could call it something like SingeSelectSimple or SelectMimic.

The idea is that it's behavior should mimic that of a regular <select> tag.

A couple of differences between this and a SingleSelect CustomHtml <much-select>:

  • no filtering as the user types
  • an option is always selected, if there isn't an initial selected value provided the first option is selected
  • no custom options
  • no multi select

It the attribute API gets a little tricky. Right now we have SelectionMode being handled by multi-select being present or not.

We probably need to convert that to an attribute like selection-mode with the possible values being:

  • single-select (default)
  • multi-select
  • select-mimic

And also support the multi-select attribute but deprecate it.

@jachin jachin added enhancement New feature or request idea Ideas that still need additional development labels Sep 15, 2022
@jachin jachin changed the title Add an attribute to disabled typing to filter Select SelectionMode Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea Ideas that still need additional development
Projects
None yet
Development

No branches or pull requests

1 participant