diff --git a/docs/components/Params.vue b/docs/components/Params.vue index 57c83d1..964db6c 100644 --- a/docs/components/Params.vue +++ b/docs/components/Params.vue @@ -88,7 +88,20 @@ * @type {Function} * @default {null} */ - onChange: Function + onChange: { + type: Function, + default: function (val) { + this.$emit('input', val) + } + }, + + /** + * Sets the id of the input element. + * @type {String} + * @default {null} + */ + inputId: { + type: String } } diff --git a/src/components/Select.vue b/src/components/Select.vue index 3cb3cdb..56e35db 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -276,6 +276,7 @@ :placeholder="searchPlaceholder" :readonly="!searchable" :style="{ width: isValueEmpty ? '100%' : 'auto' }" + :id="inputId" > @@ -481,6 +482,15 @@ noDrop: { type: Boolean, default: false + }, + + /** + * Sets the id of the input element. + * @type {String} + * @default {null} + */ + inputId: { + type: String } },