From 9acafc729268afd179c0b005abc6e1c7729ef6cc Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 15 Jun 2021 22:42:37 +0800 Subject: [PATCH] * Update top nav search input to disable spellcheck (#1346) --- src/renderer/components/ft-input/ft-input.js | 4 ++++ src/renderer/components/ft-input/ft-input.vue | 1 + src/renderer/components/top-nav/top-nav.vue | 1 + 3 files changed, 6 insertions(+) diff --git a/src/renderer/components/ft-input/ft-input.js b/src/renderer/components/ft-input/ft-input.js index 82c04562..e7e9608f 100644 --- a/src/renderer/components/ft-input/ft-input.js +++ b/src/renderer/components/ft-input/ft-input.js @@ -35,6 +35,10 @@ export default Vue.extend({ type: Boolean, default: false }, + spellcheck: { + type: Boolean, + default: true + }, dataList: { type: Array, default: () => { return [] } diff --git a/src/renderer/components/ft-input/ft-input.vue b/src/renderer/components/ft-input/ft-input.vue index fd6e1f28..19471a07 100644 --- a/src/renderer/components/ft-input/ft-input.vue +++ b/src/renderer/components/ft-input/ft-input.vue @@ -26,6 +26,7 @@ type="text" :placeholder="placeholder" :disabled="disabled" + :spellcheck="spellcheck" @input="e => handleInput(e.target.value)" @focus="handleFocus" @blur="handleInputBlur" diff --git a/src/renderer/components/top-nav/top-nav.vue b/src/renderer/components/top-nav/top-nav.vue index 8e131b7d..efdd22f9 100644 --- a/src/renderer/components/top-nav/top-nav.vue +++ b/src/renderer/components/top-nav/top-nav.vue @@ -61,6 +61,7 @@ :is-search="true" :select-on-focus="true" :data-list="searchSuggestionsDataList" + :spellcheck="false" @input="getSearchSuggestionsDebounce" @click="goToSearch" />