[TASK] add working choices.js

This commit is contained in:
Marie Birner
2023-09-23 21:05:08 +02:00
committed by philipp
parent 5e097a95da
commit e3012be264
3 changed files with 60 additions and 20 deletions

View File

@ -1,13 +1,3 @@
import Choices from "choices.js";
const selects = document.querySelectorAll('select[multiple]');
if(selects) {
Array.prototype.forEach.call(selects, (select: HTMLInputElement) => {
const choices = new Choices(select);
});
}
/*document.addEventListener('DOMContentLoaded', function() {
setDistance('.set-distance-js');
});