Skip to content

Commit

Permalink
Merge pull request #17298 from opf/bug/59163-when-opening-the-item-fo…
Browse files Browse the repository at this point in the history
…rm-no-focus-is-set

[59163] Auto focus label field of new hierarchy item
  • Loading branch information
Andreas Pfohl authored Nov 28, 2024
2 parents 8a16a68 + 085ffd8 commit 351e567
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 351e567

Please sign in to comment.