We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25b885 commit 8d761adCopy full SHA for 8d761ad
web_src/js/utils/dom.js
@@ -205,7 +205,7 @@ export function submitEventSubmitter(e) {
205
export function initSubmitEventPolyfill() {
206
if (!needSubmitEventPolyfill) return;
207
console.warn(`This browser doesn't have "SubmitEvent" support, use a tricky method to polyfill`);
208
- document.addEventListener('mousedown', (e) => {
+ document.addEventListener('click', (e) => {
209
if (!e.target.form) return;
210
const isSubmitButton = ((e.target.nodeName === 'INPUT' || e.target.nodeName === 'BUTTON') && e.target.type === 'submit');
211
e.target.form._submitter = isSubmitButton ? e.target : null;
0 commit comments