Fixing minor bugs and starting work on carousel

This commit is contained in:
Ronan Berder
2025-07-13 10:39:13 +08:00
parent 4a44656fd9
commit a2e9775a2c
7 changed files with 152 additions and 84 deletions
+6 -8
View File
@@ -51,6 +51,12 @@
input.value = option.dataset.value;
listbox.querySelector('[role="option"][aria-selected="true"]')?.removeAttribute('aria-selected');
option.setAttribute('aria-selected', 'true');
const event = new CustomEvent('change', {
detail: { value: option.dataset.value },
bubbles: true
});
selectComponent.dispatchEvent(event);
}
};
@@ -88,14 +94,6 @@
}
closePopover();
if (newValue !== oldValue) {
const event = new CustomEvent('change', {
detail: { value: newValue },
bubbles: true
});
selectComponent.dispatchEvent(event);
}
};
const selectByValue = (value) => {