Add missing deps, fix errors from eslint

This commit is contained in:
Viktor Denisov
2022-12-16 11:14:19 -08:00
parent 2cba776dc8
commit 6fa827823c
21 changed files with 483 additions and 229 deletions

View File

@@ -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) {