mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
fix: 🐛 Fix adaptive dropdowns being clicked twice when using a desktop
This commit is contained in:
parent
29d98c9f2c
commit
39b7f24f98
|
|
@ -42,7 +42,7 @@ const registerClickHandlers = () => {
|
||||||
const targetElement = document.querySelector(`.${id}`);
|
const targetElement = document.querySelector(`.${id}`);
|
||||||
if (targetElement) {
|
if (targetElement) {
|
||||||
for (const el of targetElement.children) {
|
for (const el of targetElement.children) {
|
||||||
el.addEventListener("pointerdown", (e) => {
|
el.addEventListener("touchstart", (e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// Click all element children
|
// Click all element children
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue