Add option to not close select on tab keypress#1218
Add option to not close select on tab keypress#1218kstinson14 wants to merge 2 commits intocibernox:masterfrom
Conversation
|
@kstinson14 I'm not sure about this:
AFAIK, returning Can you check that and explain a bit more why returning false doesn't work for your use case? |
|
@cibernox Sorry, I should've included this in the original post: I have an ember-twiddle here that better shows what I mean. If you have an I also put a small |
|
@cibernox Realized I didn't add the attribute to |
|
@kstinson14 I realize this is super old, but could you please rebase and fix conflicts? |
I would like to add an optional property to the
power-selectcomponent to allow the dropdown to stay open on a "Tab" keypress. You currently can pass theonkeydownmethod to the component and do some customization that way. You can then returnfalsein this method to prevent the default closing behavior from occurring. But my use case involves tabbing through / focusing content within the dropdown portion of the select. If I were to return false inonkeydown, the default browser focus behavior would also be prevented. Creating this property allows thepower-select'sdefault tab behavior to be avoided, while allowing the browser's default tab behavior to be preserved.