-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akbarism/fix autocomplete #87
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for vue-google-maps-community-fork canceled.
|
@@ -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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, this line was failing, I put a comment inside the template:
<template #input="slotProps">
<!-- Some comment -->
<input v-bind="slotProps" ref="input" />
</template>
And got errors that props/ref was not defined. Could be solved by not putting comments in the template, but a better fix might be to check if the props/ref is defined:
const input = _this.$slots.input().find((el) => el?.props?.ref && el.props.ref == 'input')
Hey guys! Sorry for late reply. Does #15 has anything related with this PR? If it does, I recommend you look through it and see the limitations we found. Otherwise, let me know if everything is working properly :) |
No description provided.