mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
fix(item): ensure mouse clicks open item via window.open in default path
This commit is contained in:
parent
2b381bd135
commit
3c2aaaaed0
1 changed files with 6 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue