1
0
Fork 0
mirror of synced 2024-07-18 20:56:04 +12:00

Count context menu clicks when considering the click outside handler

This commit is contained in:
Andrew Kingston 2023-03-07 11:54:41 +00:00
parent 84770c72c2
commit a25af10c0e
2 changed files with 2 additions and 1 deletions

View file

@ -29,6 +29,7 @@ const handleClick = event => {
})
}
document.documentElement.addEventListener("click", handleClick, true)
document.documentElement.addEventListener("contextmenu", handleClick, true)
/**
* Adds or updates a click handler

View file

@ -47,7 +47,7 @@
const onContextMenu = e => {
e.preventDefault()
open = true
open = !open
}
const sortAscending = () => {