Autocomplete: passes id to nested native input (#11643)

pull/11663/head
杨奕 2018-06-15 12:30:51 +08:00 committed by GitHub
parent 85e562185e
commit 475f7cf01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
> >
<el-input <el-input
ref="input" ref="input"
v-bind="$props" v-bind="[$props, $attrs]"
@input="handleChange" @input="handleChange"
@focus="handleFocus" @focus="handleFocus"
@blur="handleBlur" @blur="handleBlur"
@ -17,7 +17,6 @@
@keydown.down.native.prevent="highlight(highlightedIndex + 1)" @keydown.down.native.prevent="highlight(highlightedIndex + 1)"
@keydown.enter.native="handleKeyEnter" @keydown.enter.native="handleKeyEnter"
@keydown.native.tab="close" @keydown.native.tab="close"
:label="label"
> >
<template slot="prepend" v-if="$slots.prepend"> <template slot="prepend" v-if="$slots.prepend">
<slot name="prepend"></slot> <slot name="prepend"></slot>
@ -70,6 +69,8 @@
mixins: [Emitter, Focus('input'), Migrating], mixins: [Emitter, Focus('input'), Migrating],
inheritAttrs: false,
componentName: 'ElAutocomplete', componentName: 'ElAutocomplete',
components: { components: {