You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for the wonderfull repo. I'm loading the options on page load and was wondering how can I select the "all" option (select all options) on page load?
Did try this, but it seems not working:
var selectElement = document.getElementById('select-options')
var multiselectAllSelector = document.getElementsByClassName("multiselect-dropdown-all-selector")[0]
multiselectAllSelector.classList.add("checked")
selectElement.loadOptions()
The text was updated successfully, but these errors were encountered:
Here's how I solved this. The checkboxes have listeners for click events on them.
// send a click to the "all" button to trigger the event listener
document.getElementById('select-options').parentNode.getElementsByClassName('multiselect-dropdown-all-selector')[0].click();
// send a click somewhere else to collapse the drop-down
document.getElementById('foo').click();
Hi! Thanks for the wonderfull repo. I'm loading the options on page load and was wondering how can I select the "all" option (select all options) on page load?
Did try this, but it seems not working:
The text was updated successfully, but these errors were encountered: