π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
fix(search): honor "Go to Link" on Enter; prevent Event-as-force bug
aspene0ef730adc7a
diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vueindex e3e60a5a..ba1e5559 100644--- a/src/components/Settings/SearchBar.vue+++ b/src/components/Settings/SearchBar.vue@@ -1,7 +1,7 @@<template><div class = "search-settings-row"><form- @submit.prevent="searchSubmitted"+ @submit.prevent="searchSubmitted()":class="minimalSearch ? 'minimal' : 'normal'"><label for="filter-tiles">@@ -381,6 +381,10 @@ export default {/* Launch web search, to correct search engine, passing in users query */searchSubmitted(force = false) {+ // If the first argument is an Event (from accidental binding), treat as not forced+ if (force && typeof force === 'object' && 'preventDefault' in force) {+ force = false; // eslint-disable-line no-param-reassign+ }const { searchPrefs, goToLinkEnabled } = this;const input = this.input.trim();// 1. If not forcing web search, and "Go to Link" is enabled