Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot autofocus on datePicker... #136

Closed
DevIsShortForDevil opened this issue Nov 24, 2020 · 1 comment
Closed

cannot autofocus on datePicker... #136

DevIsShortForDevil opened this issue Nov 24, 2020 · 1 comment
Labels

Comments

@DevIsShortForDevil
Copy link

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 ?

@talkhabi
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants