how do i open up a dynamically created dropdown using native vue and javascript?
<select ref="dropdown">
<option v-for="(item, index) in items" :key="index">
{{item}}
</option>
</select>
under my methods i have tried these to no avail:
openDropdown () {
let el = this.$refs.dropdown;
// this doesnt work
el.click();
// this doesnt work
el.setAttribute('visible', true);
// this also doesnt work
el.style.show = true;
}
any tips or tricks would be helpful, thanks! This has to use native Vue. i understand JavaScript wont suffice on its own, but there has to be a way that Vue is able to do this. And i cannot use jQuery