mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
chore: Fix TS issue on mouse event creation (#306)
This commit is contained in:
parent
039bbdb585
commit
6bb3bd8d21
|
@ -21,7 +21,10 @@ export function mouseclick( element ) {
|
|||
// create a mouse click event
|
||||
var dispatchedEvent
|
||||
try {
|
||||
dispatchedEvent = new MouseEvent('click', true);
|
||||
dispatchedEvent = new MouseEvent('click', {
|
||||
bubbles: true,
|
||||
cancelable: false
|
||||
});
|
||||
} catch (e) {
|
||||
dispatchedEvent = document.createEvent('MouseEvent');
|
||||
dispatchedEvent.initEvent('click', true, false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user