diff --git a/app/assets/javascripts/wardrobe/item-card.js b/app/assets/javascripts/wardrobe/item-card.js index 78c6601a..04b1a796 100644 --- a/app/assets/javascripts/wardrobe/item-card.js +++ b/app/assets/javascripts/wardrobe/item-card.js @@ -28,6 +28,10 @@ class ItemCard extends HTMLElement { const input = label.querySelector("input[type=radio], input[type=checkbox]"); if (!input) return; + // If the *main* thing being clicked is a link, ignore this click. + const link = e.target.closest("a"); + if (link) return; + // If this item is worn, un-wear it by submitting the Hide form if (this.dataset.isWorn != null) { e.preventDefault();