dispatchEvent submit does not work in ie11
See original GitHub issuePrerequisites
- I have read the documentation;
- In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- Ideally, I’m providing a sample JSFiddle or a shared playground link demonstrating the issue.
Description
In Internet Explorer when attempting to submit the form, the following error occurs:
Steps to Reproduce
Submit a form.
Expected behavior
The form to submit.
Actual behavior
Error in ie11.
Version
Latest
I’ll probably have to come up with a way of polyfilling the Event on the form but I’m wondering why dispatchEvent was chosen in the first place over calling .submit
directly on the form element?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
dispatchEvent in Chrome but not in IE11 - Stack Overflow
This works in Chrome. The purpose of this command is to make a division call the submit event on a form when clicked....
Read more >730108 - In theory, dispatchEvent(new Event('submit')) should ...
This is a bug of Firefox. Dispatching non-trusted 'submit' event should not start form submission. The specification doesn't define such ...
Read more >preventDefault() on form.dispatchEvent(new Event('submit'))?
Bug 1370630 - Untrusted submit event shouldn't trigger form submission ... preventDefault()` won't work) - Chrome will not navigate away (`event.
Read more >When a Click is Not Just a Click | CSS-Tricks
It works on just about every HTML element there is, ... The HTML element represents a clickable button, used to submit forms or...
Read more >Maps JavaScript API Release Notes - Google Developers
Internet Explorer 11 is now decommissioned in the Maps Embed API. ... Updated InfoWindow , so that focus does not move when open()...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone else having this issue, this is how I am resolving it-:
Thanks for looking into the fix. Is there an ETA on when this is targeted for merge and release creation ?