Skip to content

Commit 475f7cf

Browse files
Autocomplete: passes id to nested native input (#11643)
1 parent 85e5621 commit 475f7cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/autocomplete/src/autocomplete.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
>
1010
<el-input
1111
ref="input"
12-
v-bind="$props"
12+
v-bind="[$props, $attrs]"
1313
@input="handleChange"
1414
@focus="handleFocus"
1515
@blur="handleBlur"
1616
@keydown.up.native.prevent="highlight(highlightedIndex - 1)"
1717
@keydown.down.native.prevent="highlight(highlightedIndex + 1)"
1818
@keydown.enter.native="handleKeyEnter"
1919
@keydown.native.tab="close"
20-
:label="label"
2120
>
2221
<template slot="prepend" v-if="$slots.prepend">
2322
<slot name="prepend"></slot>
@@ -70,6 +69,8 @@
7069
7170
mixins: [Emitter, Focus('input'), Migrating],
7271
72+
inheritAttrs: false,
73+
7374
componentName: 'ElAutocomplete',
7475
7576
components: {

0 commit comments

Comments
 (0)