-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of initMouseEvent is deprecated #315
Comments
@TildaDares , if my above solution is fine can I work on this issue? Please correct me if I am wrong! |
Hi @Somya-Singhal either way would be great, thank you!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In infragram.js, initMouseEvent is used, but as the use of initMouseEvent has been deprecated, so I can be fixed by the below modification
Here is the code snippet where the issue exists:
event = document.createEvent("MouseEvents"); event.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); lnk.dispatchEvent(event);
Can be fixed by below modification:
const mouseEvent = getMouseEvent(); lnk.dispatchEvent(mouseEvent("click", { screenX: 0, screenY: 0, clientX: 0, clientY: 0 }));
The text was updated successfully, but these errors were encountered: