Skip to content

Commit

Permalink
Merge pull request #1791 from shentao/fix/issue-#991
Browse files Browse the repository at this point in the history
search-spellcheck: pass spellcheck as prop (Issue #991)
  • Loading branch information
mattelen authored Sep 12, 2024
2 parents ab8faac + 1dee346 commit 6148ca5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions documentation/src/components/Props.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@
<td class="table__td"><kbd>0</kbd></td>
<td class="table__td">Specify the tabindex of the Multiselect component</td>
</tr>
<tr class="table__tr">
<td class="table__td"><strong>spellcheck</strong></td>
<td class="table__td">Boolean</td>
<td class="table__td"><kbd>false</kbd></td>
<td class="table__td">Enables search input's browser spellcheck if true.<br /><b>Added in v3.1.0</b></td>
</tr>
<tr class="table__tr">
<td class="table__td utils--center" colspan="4"><strong>pointerMixin.js</strong></td>
</tr>
Expand Down
11 changes: 10 additions & 1 deletion src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
:id="id"
type="text"
autocomplete="off"
:spellcheck="false"
:spellcheck="spellcheck"
:placeholder="placeholder"
:required="required"
:style="inputStyle"
Expand Down Expand Up @@ -289,6 +289,15 @@ export default {
type: Boolean,
default: false
},
/**
* Enables search input's spellcheck if true.
* @default false
* @type {Boolean}
*/
spellcheck: {
type: Boolean,
default: false
},
/**
* Fixed opening direction
* @default ''
Expand Down

0 comments on commit 6148ca5

Please sign in to comment.