Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

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

aspen3c2aaaaed025
diff --git a/src/mixins/ItemMixin.js b/src/mixins/ItemMixin.js
index 35518ff4..07ecb5ff 100644
--- a/src/mixins/ItemMixin.js
+++ b/src/mixins/ItemMixin.js
@@ -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');