[WV2] Fix bug for item info link when item is worn
This commit is contained in:
parent
72ac4a5f2e
commit
4ab1426c61
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ class ItemCard extends HTMLElement {
|
||||||
const input = label.querySelector("input[type=radio], input[type=checkbox]");
|
const input = label.querySelector("input[type=radio], input[type=checkbox]");
|
||||||
if (!input) return;
|
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 item is worn, un-wear it by submitting the Hide form
|
||||||
if (this.dataset.isWorn != null) {
|
if (this.dataset.isWorn != null) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue