mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
fix: 🐛 Fix adaptive dropdowns being clicked twice when using a desktop
This commit is contained in:
parent
29d98c9f2c
commit
39b7f24f98
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue