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
Manual Focus #22
Comments
You trying to focus the wrapper element. Try to get first cell element instead and apply focus to it. |
@Seokky The issue is that I don't declare any children elements.
This is the extent of my code and I let the component do the rest as far as the UI is concerned. I would imagine it would work something like this example based on the number provided in the length prop So if each pin input generated had something like Edit It appears you're already doing all that in the code but for whatever reason vue-pincode-input0 doesn't exist |
Dude, I cannot prepare some refs inside the component for use by the end user. Vue doesn't work that way. Refs are available within a single component level. Yes, of course, you can come up with all sorts of tricks with passing an object by reference, but this is a non-vue way. You need to use native JavaScript to access the cell. You can search for an element with the desired number order inside the wrapper and then focus on it, as native JavaScript can do.
|
So I'm using this inside a dialog in a vuetify app to prevent a user from entering in an admin page.
Functionally everything works great but because the way vuetify mounts dialogs the autofocus doesn't work right.
Is there a ref or a way to manually invoke a focus to the first element?
The following code does not work
The text was updated successfully, but these errors were encountered: