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 = () => {