The vuejs datepicker opens only when I click on its input field. I want it to pop up when I focus on its field by pressing tab from the previous field.
I looked for solutions on stackoverflow but could not find anything similar.
Here is my code:
const app = new Vue({
el: '#app',
components: {
vuejsDatepicker
}
})
<div id="app">
<input type="text" placeholder="Textbox" autofocus>
<br><br>
<vuejs-datepicker placeholder="Datepicker"></vuejs-datepicker>
</div>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vuejs-datepicker"></script>
Whenever I press tab after writing something on the textbox, the focus goes to the datepicker field but the picker only pops up when I click on it using mouse. Whereas I want it to open everytime on focus. Can someone help please?