[Vuejs]-Interact with vue-multiselect programmatically

0👍

The drawer is hidden using display: none.

In order to open the drawer:

drawer = document.querySelector('.multiselect__content-wrapper')
drawer.style.display = 'block'

To select/deselect items by index:

document.querySelectorAll('.multiselect__option')[0].click()

Leave a comment