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) => {
|
||||
// Ignore keyboard clicks
|
||||
if (event.detail === 0){
|
||||
// Don't close when clicking on desktop mode
|
||||
if (
|
||||
event.target.nodeName !== "SUMMARY"
|
||||
|| event.detail === 0
|
||||
){
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user