I implemented a date-picker component in my app following the instructions from Vuetify.
To enhance usability for desktop users, I removed the readonly
attribute to allow manual input.
Now, desktop users can easily navigate through form fields using the tab key to quickly enter dates and times. However, a new issue emerged as the date-picker stopped appearing when users clicked into the text-field. Adding @focus="menuVariable=true"
to the text-field resolved this problem.
Yet, another challenge arose where the date-picker would not consistently show up when users initially clicked into the text-field. Despite attempting various solutions like listening for click events and toggling the menu's visibility manually, I have been unable to find a reliable fix. It seems that setting the variable may be causing the issue. Any suggestions on how to overcome this obstacle or other methods to open the date-picker manually would be highly appreciated.
For a demonstration of the issue, you can access the codepen here. By interacting with the two text-fields, you will notice that the date-picker on the right consistently opens, while the one on the left only does so sporadically.
If anyone has a better solution to ensure the date-picker appears reliably when users either click into the text-field (or any part of the v-menu) or tab into it, please share your insights.