-
Notifications
You must be signed in to change notification settings - Fork 694
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
<UInput> template ref does not work #3644
Comments
@maciekkand Have you tried usingTemplateRef in this way? |
Hi Hugo,
Big thank you for such an instant response.
I have not seen it, but I will try it out in a second, as it seems to be
exactly my case.
Should I mark that Bug Report as solved or you guys will do that ?
Sorry for not reading docs thoroughly enough hence polluting Bug Report page
Greetings
Maciek
pt., 21 mar 2025 o 13:38 Hugo Richard ***@***.***> napisał(a):
… @maciekkand <https://github.com/maciekkand> Have you tried
usingTemplateRef in this way?
https://ui.nuxt.com/components/input#with-keyboard-shortcut
—
Reply to this email directly, view it on GitHub
<#3644 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIE42DC64UKFZMAVBNMIZYT2VQB3RAVCNFSM6AAAAABZP4MCNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTGI2DOMRXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: HugoRCD]*HugoRCD* left a comment (nuxt/ui#3644)
<#3644 (comment)>
@maciekkand <https://github.com/maciekkand> Have you tried
usingTemplateRef in this way?
https://ui.nuxt.com/components/input#with-keyboard-shortcut
—
Reply to this email directly, view it on GitHub
<#3644 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIE42DC64UKFZMAVBNMIZYT2VQB3RAVCNFSM6AAAAABZP4MCNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTGI2DOMRXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Don't worry, we are here to help ! 😁 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
Nuxt UI 3.0
Reproduction
Description
Standard Vue method of using template ref (for setting a focus, here) throws: 'focus() is not a function'
In the above code snippet I included workaround (credits to Sonnet 3.5)
Tried it dozen of times and checked this place to see if it has not been solved earlier.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: