Add autofocus support to GlNewDropdown
Can we please consider adding an autofocus
for this component
This issue is based on the need for this issue gitlab#14984 (comment 314982324)
I'm copying the main point of this discussion here:
@pedroms: Looking at the component demos, I'm concerned that we're not able to auto-focus the search field… Or maybe we can?
@sming-gitlab: You're right though, there's no
autofocus
😞 But it will focus the search field when tabbed and entered over. Perhaps it's not a big deal breaker🤔 Because we can easily create a separate issue to addautofocus
on the GL component. Once that's done, I'll update our author dropdown to utilize that feature.
@pedroms: For the auto-focus, can you please create a gitlab-ui issue to add that dropdown feature? I'd argue that it should be the default behavior of all dropdowns with search (set to false if needed, on a case by case basis).