Count context menu clicks when considering the click outside handler
This commit is contained in:
parent
84770c72c2
commit
a25af10c0e
|
@ -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
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
const onContextMenu = e => {
|
||||
e.preventDefault()
|
||||
open = true
|
||||
open = !open
|
||||
}
|
||||
|
||||
const sortAscending = () => {
|
||||
|
|
Loading…
Reference in New Issue