Skip to content

Commit

Permalink
[59163] Auto focus label field of new hierarchy item
Browse files Browse the repository at this point in the history
  • Loading branch information
apfohl committed Nov 28, 2024
1 parent 3724f0c commit 085ffd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/forms/custom_fields/hierarchy/item_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 085ffd8

Please sign in to comment.