Skip to content

Commit 39b7f24

Browse files
committed
fix: 🐛 Fix adaptive dropdowns being clicked twice when using a desktop
1 parent 29d98c9 commit 39b7f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dropdowns/AdaptiveDropdown.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const registerClickHandlers = () => {
4242
const targetElement = document.querySelector(`.${id}`);
4343
if (targetElement) {
4444
for (const el of targetElement.children) {
45-
el.addEventListener("pointerdown", (e) => {
45+
el.addEventListener("touchstart", (e) => {
4646
e.stopPropagation();
4747
e.preventDefault();
4848
// Click all element children

0 commit comments

Comments
 (0)