dynamically open dropdown in vue
how do i open up a dynamically created dropdown using native vue and javascript?
{{item}}
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
0 comments:
Post a Comment
Thanks