From 085ffd8dfb96c7a84d3b326306ca2d48975b9b88 Mon Sep 17 00:00:00 2001 From: Andreas Pfohl Date: Thu, 28 Nov 2024 10:50:58 +0100 Subject: [PATCH] [59163] Auto focus label field of new hierarchy item --- app/forms/custom_fields/hierarchy/item_form.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/forms/custom_fields/hierarchy/item_form.rb b/app/forms/custom_fields/hierarchy/item_form.rb index 96f66e73aa73..50f9d41e8529 100644 --- a/app/forms/custom_fields/hierarchy/item_form.rb +++ b/app/forms/custom_fields/hierarchy/item_form.rb @@ -39,6 +39,7 @@ class ItemForm < ApplicationForm value: @target_item.label, visually_hide_label: true, required: true, + autofocus: true, placeholder: I18n.t("custom_fields.admin.items.placeholder.label"), validation_message: validation_message_for(:label) )