yaofly2012 / note

Personal blog

Home Page:https://github.com/yaofly2012/note/issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Form submission canceled because the form is not connected

yaofly2012 opened this issue · comments

commented

锅从天上来

项目没发布,结果用户突然反馈说无法提交进件了!!!
自己试了了下果然不行,好在Console面板里有个Warning(总算有个线索):

Form submission canceled because the form is not connected

来自https://www.googletagmanager.com/gtag/js?id=AW-827436400

难道是Google Tag Manager 的“大礼”?

gtag js刚好有变更:
image

顺着Console面板里的Warning定位到gtag js把HTMLFormElement.prototype.submit方法重写了,改成了异步调用:
image

但这怎么会用户提交进件呢?

再看看项目代码是如何“提交进件”的 TODO