2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

Add tabindex support

This commit is contained in:
Jan-Willem
2017-11-27 10:16:41 +01:00
parent 9e340b5c80
commit 9b8b4dcc80
+10
View File
@@ -310,6 +310,7 @@
class="form-control" class="form-control"
:disabled="disabled" :disabled="disabled"
:placeholder="searchPlaceholder" :placeholder="searchPlaceholder"
:tabindex="tabindex"
:readonly="!searchable" :readonly="!searchable"
:style="{ width: isValueEmpty ? '100%' : 'auto' }" :style="{ width: isValueEmpty ? '100%' : 'auto' }"
:id="inputId" :id="inputId"
@@ -500,6 +501,15 @@
default: false default: false
}, },
/**
* Set the tabindex for the input field.
* @type {Number}
*/
tabindex: {
type: Number,
default: null
},
/** /**
* When true, newly created tags will be added to * When true, newly created tags will be added to
* the options list. * the options list.