From 2f9fb2e20b26cd4f9f5b38b1bb2122d3b092ab52 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 16 Oct 2025 20:02:57 -0500 Subject: [PATCH] Bring back a dedicated button for adding tags Fixes and issue in which you couldn't add a new tag if there were any matches so you couldn't created a tag named "blue" if there was already one named "blueberry" ` --- app/views/cards/taggings/new.html.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/cards/taggings/new.html.erb b/app/views/cards/taggings/new.html.erb index 940ebe8a1..a016470aa 100644 --- a/app/views/cards/taggings/new.html.erb +++ b/app/views/cards/taggings/new.html.erb @@ -7,12 +7,19 @@ > Tag this… - <%= form_with url: card_taggings_path(@card), class: "flex flex-column gap-half full-width margin-block-half" do |form| %> + <%= form_with url: card_taggings_path(@card), id: dom_id(@card, :tags_form), class: "flex flex-column gap-half full-width margin-block-half" do |form| %> <%= form.text_field :tag_title, placeholder: @tags.any? ? "Add a new tag or filter…" : "Name this tag…", class: "input txt-small full-width", autocomplete: "off", data: { filter_target: "input", action: "input->filter#filter" } %> <% end %>