mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix click-outsie: change the capture phase
This commit is contained in:
@@ -18,12 +18,12 @@ const nodeList: FlushList = new Map()
|
||||
let startClick: MouseEvent
|
||||
|
||||
if (!isServer) {
|
||||
on(document, 'mousedown', (e: MouseEvent) => (startClick = e))
|
||||
on(document, 'mousedown', (e: MouseEvent) => (startClick = e), true)
|
||||
on(document, 'mouseup', (e: MouseEvent) => {
|
||||
for (const { documentHandler } of nodeList.values()) {
|
||||
documentHandler(e, startClick)
|
||||
}
|
||||
})
|
||||
}, true)
|
||||
}
|
||||
|
||||
function createDocumentHandler(
|
||||
|
||||
Reference in New Issue
Block a user