talkhabi/vue-persian-datetime-picker

cannot autofocus on datePicker...

DevIsShortForDevil opened this issue · 1 comments

Hi , I'm using the datepicker and it's editable and I want to autofocus on the input field ! so far even using ref with focus() didn't work for me ! is there a way to do this ?

Hi @DevIsShortForDevil you can use native javascript methods for focus, like this example:

this.$refs.datepicker.$el.querySelector('input').focus()

I'll fix this problem soon.