mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
Make autocomplete value a prop (#730)
What --- - Turn the autocomplete value on the `input` configurable by exposing it as a prop. Why --- So it can be customised, which can be necessary to help developers show or hide autocomplete forms as they wish.
This commit is contained in:
@@ -34,6 +34,16 @@ disabled: {
|
||||
default: false
|
||||
},
|
||||
|
||||
/**
|
||||
* Value of the 'autocomplete' field of the input
|
||||
* element.
|
||||
* @type {String}
|
||||
*/
|
||||
autocomplete: {
|
||||
type: String,
|
||||
default: 'off'
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the max-height property on the dropdown list.
|
||||
* @deprecated
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
@focus="onSearchFocus"
|
||||
type="search"
|
||||
class="form-control"
|
||||
autocomplete="off"
|
||||
:autocomplete="autocomplete"
|
||||
:disabled="disabled"
|
||||
:placeholder="searchPlaceholder"
|
||||
:tabindex="tabindex"
|
||||
@@ -512,6 +512,17 @@
|
||||
default: 'label'
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Value of the 'autocomplete' field of the input
|
||||
* element.
|
||||
* @type {String}
|
||||
*/
|
||||
autocomplete: {
|
||||
type: String,
|
||||
default: 'off'
|
||||
},
|
||||
|
||||
/**
|
||||
* Tells vue-select what key to use when generating option
|
||||
* values when each `option` is an object.
|
||||
|
||||
Reference in New Issue
Block a user