I'm currently working on a project utilizing the v-autocomplete
component, which is actually an extension of the v-select element.
In my scenario, I need to place this select element inside a v-menu container.
When attempting to wrap a v-select
within a v-menu
alongside a v-btn
as an activator, the expected behavior would be to display a button first and upon clicking it, reveal the autocomplete dropdown menu.
Take a look at this CodePen to better understand my point: https://codepen.io/sntshk/pen/KKmjMPX?editors=1010
The issue with the current setup is that upon clicking the button, the dropdown items initially appear squished, giving a poor visual presentation. Only upon focusing on the v-select element by clicking, the full dropdown list is displayed.
My intention is to have the v-select element focused by default when clicking the button, ensuring the dropdown list is fully visible right away.
Hence, my question is, how can I ensure the v-select is focused by default?