-
-
Notifications
You must be signed in to change notification settings - Fork 822
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
Added properties for using dropdown in search #385
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/shoelace/shoelace/H6rP5BKpFBt9ZfLvbwWyhpLkHmnX |
What is the intent here? Is it to simply disable |
@claviska the intent is to use sl-dropdown with an sl-input in the trigger slot. This provides good functionality as a search drop-down/combobox. The typeToSelect Boolean is to disable/enable that function. The focusKeys props is so that spacebar or enter can be manually disabled if needed. In the case of a search component, spacebar must be disabled so that a space character can be entered in the input. Although the methods can be overridden easily in the context of a search component, I thought these two should be part of the API for easier customisation. |
I'm only seeing
This may cause a11y issues so we need to be careful here. Is this more or less what you're trying to achieve? If so, it probably needs to be incorporated into To be honest, this is probably a separate component that utilizes |
I appreciate the PR. At this point, I don't feel comfortable exposing these options. Let's revisit this as part of #127 after the 2.0 stable release. 😄 |
we have a similar need and will try to build a searchable select like you proposed (to get rid of chosen.js components we have right now) |
No description provided.