timeroute / mapvue

A well-packaged MapboxGL component library for Vue3. 🗺️
https://mapvue.netlify.app
MIT License
19 stars 1 forks source link

@click event does not work in v-popup #10

Open edanweis opened 1 year ago

edanweis commented 1 year ago

@click events do not trigger any callback within mapbox <v-popup/> components. Only <a> elements seems to work. I'm using Vue 3 + Vuetify. Any ideas why?

timeroute commented 1 year ago

any content in <v-popop /> components are just string nodes. They can not interactive with outer components. You can check it by mapbox-gl official site popup

edanweis commented 1 year ago

So I would have to build another custom component. It would be great to have a slot for a custom child component within the popup component