* Update top nav search input to disable spellcheck (#1346)

This commit is contained in:
PikachuEXE 2021-06-15 22:42:37 +08:00 committed by GitHub
parent 825bec1a81
commit 9acafc7292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,10 @@ export default Vue.extend({
type: Boolean, type: Boolean,
default: false default: false
}, },
spellcheck: {
type: Boolean,
default: true
},
dataList: { dataList: {
type: Array, type: Array,
default: () => { return [] } default: () => { return [] }

View File

@ -26,6 +26,7 @@
type="text" type="text"
:placeholder="placeholder" :placeholder="placeholder"
:disabled="disabled" :disabled="disabled"
:spellcheck="spellcheck"
@input="e => handleInput(e.target.value)" @input="e => handleInput(e.target.value)"
@focus="handleFocus" @focus="handleFocus"
@blur="handleInputBlur" @blur="handleInputBlur"

View File

@ -61,6 +61,7 @@
:is-search="true" :is-search="true"
:select-on-focus="true" :select-on-focus="true"
:data-list="searchSuggestionsDataList" :data-list="searchSuggestionsDataList"
:spellcheck="false"
@input="getSearchSuggestionsDebounce" @input="getSearchSuggestionsDebounce"
@click="goToSearch" @click="goToSearch"
/> />