Skip to content

Commit 861d457

Browse files
make id of input-element customizeable
1 parent e1a100a commit 861d457

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/Select.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
:placeholder="searchPlaceholder"
199199
:readonly="!searchable"
200200
:style="{ width: isValueEmpty ? '100%' : 'auto' }"
201+
:id="inputId"
201202
>
202203

203204
<i v-if="!noDrop" ref="openIndicator" role="presentation" class="open-indicator"></i>
@@ -407,6 +408,14 @@
407408
noDrop: {
408409
type: Boolean,
409410
default: false
411+
},
412+
413+
/**
414+
* Sets the id of the input element.
415+
* @type {String}
416+
*/
417+
inputId: {
418+
type: String
410419
}
411420
},
412421

0 commit comments

Comments
 (0)