Skip to content

Commit d90c9fd

Browse files
author
Guillaume Chau
committed
Fix chrome-only property
1 parent 27601ac commit d90c9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function installHook (window) {
8686
// Start recording context menu when Vue is detected
8787
// event if Vue devtools are not loaded yet
8888
document.addEventListener('contextmenu', event => {
89-
let el = event.srcElement
89+
let el = event.target
9090
if (el) {
9191
// Search for parent that "is" a component instance
9292
while (!el.__vue__ && el.parentElement) {

0 commit comments

Comments
 (0)