mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 19:51:42 +00:00
Fix a bug on click event
This commit is contained in:
@@ -24,6 +24,7 @@ document.addEventListener('dragover', function (e) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('click', function (e) {
|
document.addEventListener('click', function (e) {
|
||||||
|
if (!e.target.className) return
|
||||||
const isInfoButton = e.target.className.includes('infoButton')
|
const isInfoButton = e.target.className.includes('infoButton')
|
||||||
const isInfoPanel = e.target.offsetParent.className.includes('infoPanel')
|
const isInfoPanel = e.target.offsetParent.className.includes('infoPanel')
|
||||||
if (isInfoButton || isInfoPanel) return
|
if (isInfoButton || isInfoPanel) return
|
||||||
|
|||||||
Reference in New Issue
Block a user