Заменить весь JS на:
myOptions = [
{ label: 'SSS', value: 'SSS' },
{ label: 'SPC', value: 'SPC' },
{ label: 'SCR', value: 'SCR' },
{ label: 'ALASK', value: 'ALASK' },
{ label: 'ALBAN', value: 'ALBAN' },
{ label: 'MAYO1', value: 'MAYO1' },
{ label: 'GENZY', value: 'GENZY' }
]
let elQuery = '.criteria__activity'
VirtualSelect.init({
ele: elQuery,
options: myOptions,
hideClearButton: true,
multiple: true,
placeholder: '',
searchPlaceholderText: 'Search here..'
});
let vs = document.querySelector(elQuery)
vs.addEventListener('beforeClose', () => {
if (vs.value.length == 0) {
document.querySelector('.criteria-block .criteria__activity-label').classList.remove('anim')
}
});
vs.addEventListener('beforeOpen', () => {
document.querySelector('.criteria-block .criteria__activity-label').classList.add('anim')
});