Add missing deps, fix errors from eslint
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
<template>
|
||||
<template v-if="$slots['input']">
|
||||
<slot
|
||||
name="input"
|
||||
v-bind="$attrs"
|
||||
></slot>
|
||||
<slot name="input" v-bind="$attrs"></slot>
|
||||
</template>
|
||||
<input
|
||||
v-else-if="!$slots['input']"
|
||||
ref="input"
|
||||
v-bind="$attrs"
|
||||
v-on="$attrs"
|
||||
/>
|
||||
<input v-else-if="!$slots['input']" ref="input" v-bind="$attrs" v-on="$attrs" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -49,15 +41,15 @@ const props = {
|
||||
|
||||
export default {
|
||||
mounted() {
|
||||
const _this = this;
|
||||
const _this = this
|
||||
this.$gmapApiPromiseLazy().then(() => {
|
||||
// get correct input from fallback or slot
|
||||
let refInput = _this.$refs.input
|
||||
if (_this.$slots.input) {
|
||||
const refName = _this.$slots.input()[0].props.ref;
|
||||
const scopedInput = _this.$slots.input()[0].ref.i.ctx.$refs[refName];
|
||||
const refName = _this.$slots.input()[0].props.ref
|
||||
const scopedInput = _this.$slots.input()[0].ref.i.ctx.$refs[refName]
|
||||
if (scopedInput) {
|
||||
refInput = scopedInput.$el.getElementsByTagName('input')[0];
|
||||
refInput = scopedInput.$el.getElementsByTagName('input')[0]
|
||||
}
|
||||
}
|
||||
if (this.selectFirstOnEnter) {
|
||||
|
||||
Reference in New Issue
Block a user