How can we focus on an input from within a script? #812
shahabbasian
started this conversation in
General
Replies: 3 comments 1 reply
|
For now FormKit doesn't have any way to get the input element, but you can still use JS |
1 reply
|
It'd be great to have the ability to define on form level which field should auto-focus, if any. The result should be the same as with: const email = ref<HTMLInputElement | null>(null)
useFocus(email, { initialValue: true }) |
0 replies
|
Internally I would guess |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I need to focus on an
<FormKit type="text" />from within a<script setup>block and amethodI would appreciate it if you could guide me.
All reactions