-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Hi!
Just a feature idea: Would it make sense to extract the dropdown element out of the component to allow it to be used individually without input element. It's not a first time i would like to use just the features of the dropdown and attach it into somewhere else. It might be a text area, input or something totally different. The dropdown would listen to key(down) events passed to it and this way it could be able to highlight active element, maybe return selected one, etc. Most of dropdowns have a lot of common logic, like scrolling back to top when list ends, return selected value when hitting enter/arrow/tab/some other key etc etc. For example i would like to implement it to follow caret position of the text input. This is probably something what most of dropdown/select libraries does not want to implement by them selves. and this is also the reason why i would like to use only the dropdown part, not the always visible select-component.