From 5ca600506bfabd4a54789b8a55655855ec9a66eb Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 10 Jan 2026 21:17:39 +0100 Subject: [PATCH] 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. --- frontend/src/components/input/FormField.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/input/FormField.vue b/frontend/src/components/input/FormField.vue index 178c15ee2..a0c58739a 100644 --- a/frontend/src/components/input/FormField.vue +++ b/frontend/src/components/input/FormField.vue @@ -59,6 +59,9 @@ defineExpose({ get value() { return inputRef.value?.value ?? '' }, + focus() { + inputRef.value?.focus() + }, })