fix(item): ensure mouse clicks open item via window.open in default path

This commit is contained in:
aspen 2025-09-26 16:16:19 +00:00
parent 2b381bd135
commit 3c2aaaaed0

View file

@ -152,6 +152,12 @@ export default {
} else if (this.accumulatedTarget === 'clipboard') {
e.preventDefault();
this.copyToClipboard(url);
} else {
// Explicitly navigate to ensure clicks always open even if other handlers interfere
// Use anchorTarget mapping for correct behavior (same tab/new tab/parent/top)
e.preventDefault();
const target = this.anchorTarget || '_self';
window.open(url, target);
}
// Emit event to clear search field, etc
this.$emit('itemClicked');