Form submission canceled because the form is not connected
yaofly2012 opened this issue · comments
yq commented
锅从天上来
项目没发布,结果用户突然反馈说无法提交进件了!!!
自己试了了下果然不行,好在Console面板里有个Warning(总算有个线索):
Form submission canceled because the form is not connected
来自https://www.googletagmanager.com/gtag/js?id=AW-827436400
。
难道是Google Tag Manager 的“大礼”?
顺着Console面板里的Warning定位到gtag js把HTMLFormElement.prototype.submit
方法重写了,改成了异步调用:
但这怎么会用户提交进件呢?