fix: 🐛 Fix adaptive dropdowns being clicked twice when using a desktop

This commit is contained in:
Jesse Wierzbinski 2024-06-06 11:29:27 -10:00
parent 29d98c9f2c
commit 39b7f24f98
No known key found for this signature in database

View file

@ -42,7 +42,7 @@ const registerClickHandlers = () => {
const targetElement = document.querySelector(`.${id}`);
if (targetElement) {
for (const el of targetElement.children) {
el.addEventListener("pointerdown", (e) => {
el.addEventListener("touchstart", (e) => {
e.stopPropagation();
e.preventDefault();
// Click all element children