Wrong type passed as event handler #216
Unanswered
Jeissonssp000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[Vue warn]: Wrong type passed as event handler to onPlaceholder - did you forget @ or : in front of your prop? Expected function or array of functions, received type string.
this warning and the same with onClass, for
<input ref="input" v-bind="$attrs" v-on="$attrs" />
in autocomplete.vue, maybe $attrs in both (v-on & v-bind) is causing this?I couldn't find the documentation for Vue 3.2 (the version in vue-google-maps), but at least in Vue 3.5, it's not necessary to explicitly use v-bind="$attrs" and v-on="$attrs" inside the component. Vue automatically binds event listeners and attributes to the root element when using inheritAttrs: true (default behavior).
There is another way to manage this issue?
Beta Was this translation helpful? Give feedback.
All reactions