One of my Vue components emits the change
event.
methods: {
onSelect(value) {
this.open = false
if (value === this.value) return
this.$emit('change', value)
},
}
I have integrated this component into an .astro file (basically Vanilla JS/HTML).
<VisSelect client:load brand={brand} name={selectId} placeholder={placeholder} label={label} required={required} options={options} />
I have tried adding an event listener to my document, listening for the change
event, but it does not seem to be triggered.
document.addEventListener('change', (e) => console.log(e))