Close lightbox before navigating on tag/category link click
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -442,6 +442,7 @@
|
|||||||
// Skip anchor links
|
// Skip anchor links
|
||||||
if (a.href.includes('#')) return;
|
if (a.href.includes('#')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if (lb && lb.dataset.open === 'true') lbClose();
|
||||||
navigate(a.href);
|
navigate(a.href);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -442,6 +442,7 @@
|
|||||||
// Skip anchor links
|
// Skip anchor links
|
||||||
if (a.href.includes('#')) return;
|
if (a.href.includes('#')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if (lb && lb.dataset.open === 'true') lbClose();
|
||||||
navigate(a.href);
|
navigate(a.href);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user