Don't autofocus collection name

This rarely changes, don't make it too easy. Especially because the
focused input prevents hotkeys you might want to use here
This commit is contained in:
Jason Zimdars
2025-10-22 16:35:59 -07:00
parent 4bd9904013
commit c7f0b00a18
+1 -1
View File
@@ -1,7 +1,7 @@
<div class="flex align-center gap">
<label class="flex-item-grow">
<strong><%= form.text_field :name, name: "collection[name]", class: "input full-width txt-medium",
required: true, autofocus: true, placeholder: "Give it a name…",
required: true, autofocus: false, placeholder: "Give it a name…",
data: { action: "keydown.enter->form#submit:prevent, keydown.esc->form#cancel" } %></strong>
</label>
</div>