Fixed exemple page and collback

This commit is contained in:
MaxOvs19
2023-02-06 15:24:36 +03:00
parent 993b8855fa
commit bcad805727
8 changed files with 70 additions and 57 deletions

View File

@ -143,7 +143,9 @@ export function clearSelect(select: HTMLElement, element: Element, dataSelectTex
select!.appendChild(svgIcon);
svgIcon.addEventListener('click', () => {
svgIcon.addEventListener('click', (e) => {
e.preventDefault();
e.stopPropagation();
select!.innerText = '';
nativeOption.forEach((option) => {