From 4ab1426c61c277f2be5f58f09000e9c9013a32b6 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sun, 15 Feb 2026 20:37:39 -0800 Subject: [PATCH] [WV2] Fix bug for item info link when item is worn --- app/assets/javascripts/wardrobe/item-card.js | 4 ++++ 1 file changed, 4 insertions(+) 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();