forked from extern/egroupware
Et2LinkList: Fix context menu "Save As" gave error
Cannot read properties of undefined (reading 'dispatchEvent')
This commit is contained in:
parent
c9186240c8
commit
2188791540
@ -445,7 +445,7 @@ export class Et2LinkList extends Et2LinkString
|
|||||||
|
|
||||||
let evt = document.createEvent('MouseEvent');
|
let evt = document.createEvent('MouseEvent');
|
||||||
evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
|
evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
|
||||||
a[0].dispatchEvent(evt);
|
a.dispatchEvent(evt);
|
||||||
a.remove();
|
a.remove();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user