* 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,
default: false
},
spellcheck: {
type: Boolean,
default: true
},
dataList: {
type: Array,
default: () => { return [] }

View File

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

View File

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