Skip to content

Commit

Permalink
Autocomplete: passes id to nested native input
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Jun 15, 2018
1 parent 23a2e8d commit 5a25c0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/autocomplete/src/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
>
<el-input
ref="input"
v-bind="$props"
v-bind="[$props, $attrs]"
@input="handleChange"
@focus="handleFocus"
@blur="handleBlur"
@keydown.up.native.prevent="highlight(highlightedIndex - 1)"
@keydown.down.native.prevent="highlight(highlightedIndex + 1)"
@keydown.enter.native="handleKeyEnter"
@keydown.native.tab="close"
:label="label"
>
<template slot="prepend" v-if="$slots.prepend">
<slot name="prepend"></slot>
Expand Down Expand Up @@ -70,6 +69,8 @@
mixins: [Emitter, Focus('input'), Migrating],
inheritAttrs: false,
componentName: 'ElAutocomplete',
components: {
Expand Down

0 comments on commit 5a25c0b

Please sign in to comment.