mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
fix click-outsie: change the capture phase
This commit is contained in:
parent
a2a1b94628
commit
4f21ea4cb5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user