From 89d615956e08ccd56efbd436f3d19428d72a2120 Mon Sep 17 00:00:00 2001 From: Akbar Ismail Date: Thu, 14 Dec 2023 16:31:37 +0700 Subject: [PATCH 1/3] fix something --- package.json | 2 +- src/components/autocomplete.vue | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a12d3be..93284a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-google-maps-community-fork", "description": "Google Maps components for VueJS 3 maintained by the community", - "version": "0.3.1", + "version": "0.3.2", "private": false, "main": "src/main.js", "keywords": [ diff --git a/src/components/autocomplete.vue b/src/components/autocomplete.vue index aea2f54..1c97f7c 100644 --- a/src/components/autocomplete.vue +++ b/src/components/autocomplete.vue @@ -46,10 +46,11 @@ export default { // 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 input = _this.$slots.input().find((el) => el.props.ref == 'input') + const refName = input.props.ref + const scopedInput = input.ref.i.ctx.$refs[refName] if (scopedInput) { - refInput = scopedInput.$el.getElementsByTagName('input')[0] + refInput = scopedInput } } if (this.selectFirstOnEnter) { From b29adc39630488daa67796f3c181483dca9401d8 Mon Sep 17 00:00:00 2001 From: Akbar Ismail Date: Thu, 14 Dec 2023 16:47:10 +0700 Subject: [PATCH 2/3] remove eslint --- .eslintrc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8790d6a..35fe588 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,8 +4,8 @@ module.exports = { es6: true, node: true, }, - "globals": { - "google": true + globals: { + google: true, }, parser: 'vue-eslint-parser', parserOptions: { @@ -19,9 +19,9 @@ module.exports = { extends: [ 'plugin:vue/vue3-essential', - 'eslint:recommended', - 'plugin:prettier/recommended', - 'prettier', + // 'eslint:recommended', + // 'plugin:prettier/recommended', + // 'prettier', ], rules: { From fdde864fdd5c1c914f43d29abe8f8db41abeb491 Mon Sep 17 00:00:00 2001 From: Akbar Ismail Date: Thu, 14 Dec 2023 16:49:22 +0700 Subject: [PATCH 3/3] create new branch --- .eslintrc.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 35fe588..de3b4db 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,9 +19,9 @@ module.exports = { extends: [ 'plugin:vue/vue3-essential', - // 'eslint:recommended', - // 'plugin:prettier/recommended', - // 'prettier', + 'eslint:recommended', + 'plugin:prettier/recommended', + 'prettier', ], rules: { diff --git a/package.json b/package.json index 93284a2..a12d3be 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-google-maps-community-fork", "description": "Google Maps components for VueJS 3 maintained by the community", - "version": "0.3.2", + "version": "0.3.1", "private": false, "main": "src/main.js", "keywords": [