[WV2] Fix bug for item info link when item is worn

This commit is contained in:
Emi Matchu 2026-02-15 20:37:39 -08:00
parent 72ac4a5f2e
commit 4ab1426c61

View file

@ -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();