mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-20 10:05:20 +00:00
Fix click on navbar
This commit is contained in:
parent
48fae33651
commit
b5ebf09fcb
@ -123,8 +123,11 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
item.addEventListener("click", (event) => {
|
item.addEventListener("click", (event) => {
|
||||||
// Ignore keyboard clicks
|
// Don't close when clicking on desktop mode
|
||||||
if (event.detail === 0){
|
if (
|
||||||
|
event.target.nodeName !== "SUMMARY"
|
||||||
|
|| event.detail === 0
|
||||||
|
){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user