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

[META] Combo-box #794

Open
clarani opened this issue Jan 6, 2025 · 0 comments
Open

[META] Combo-box #794

clarani opened this issue Jan 6, 2025 · 0 comments

Comments

@clarani
Copy link
Contributor

clarani commented Jan 6, 2025

Expected behavior

  • the only way to select a value is to select it either with a click or with pressing "enter" or "tab" (if the focus is on an element of the list)

  • we should keep the last selected value (or no value if no value is currently selected):

    • if the user clicks outside
    • if the user press "escape"
  • if there is only 1 element in the list and the user does not select it (with a click or by pressing "enter"), then the element is not selected

  • clicking inside a completed field should display the selected option among the whole list, like in this example. If we have 4 suggestion displayed, this item should be at 2nd.
    It would be nice to be able to easily config the number of displayed suggestions. The position of the selected suggestion in the list would be Math.ceil(n/2) (where n is the number of displayed suggestions)

Tasks list

...

@Synar Synar assigned Synar and unassigned Synar Jan 23, 2025
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

2 participants