mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28: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}`);
|
||||
if (targetElement) {
|
||||
for (const el of targetElement.children) {
|
||||
el.addEventListener("pointerdown", (e) => {
|
||||
el.addEventListener("touchstart", (e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
// Click all element children
|
||||
|
|
|
|||
Loading…
Reference in a new issue