Skip to content

Show dropdown only once the user starts typing #1062

Closed
letronje opened this Issue Feb 28, 2013 · 2 comments

3 participants

@letronje

Currently, once a select has been chosen'ized, the dropdown shows options the moment the user clicks on it. Is there a way to do that only when the user types in n(ideally configurable, n=1 will do) characters ?

@jameslouiz

This is very vague and rough but something along the lines of..

$('input').on('keyup', function(){
if ($(this).val().match('n')) {
// do something
}
};)

@pfiller
pfiller commented Apr 16, 2013

Right now, Chosen opens up when someone clicks or when someone starts typing in a focused Chosen field. It sounds like you want to limit the behavior to only when someone types. I don't really see a usability advantage to making that kind of change -- in fact, I see the opposite. Chosen should only add features if and when they provide a measurable benefit to the end user.

@pfiller pfiller closed this Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.