mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-31 10:47:57 -05:00
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:
@@ -59,6 +59,9 @@ defineExpose({
|
||||
get value() {
|
||||
return inputRef.value?.value ?? ''
|
||||
},
|
||||
focus() {
|
||||
inputRef.value?.focus()
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user