fix(frontend): expose focus method on FormField component

Components using FormField with a ref need to call .focus() on it.
Without exposing the method, these calls would fail since the ref
points to the component instance, not the underlying input element.
This commit is contained in:
kolaente 2026-01-10 21:17:39 +01:00
parent fb8ee82b98
commit 5ca600506b
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ defineExpose({
get value() { get value() {
return inputRef.value?.value ?? '' return inputRef.value?.value ?? ''
}, },
focus() {
inputRef.value?.focus()
},
}) })
</script> </script>