IE11-Only Submit Bug

前端 未结 8 1100
我寻月下人不归
我寻月下人不归 2021-02-01 18:44

I have a form on a page, something simple like:

相关标签:
8条回答
  • 2021-02-01 19:13

    For me, I had empty hidden fields that were marked required. Pretty stupid but it was the solution that worked for me.

    0 讨论(0)
  • 2021-02-01 19:16

    For IE11, there is :

    event.returnValue = false;
    

    Checking if event.preventDefault exists prevent an eventual error :

    event.preventDefault ? event.preventDefault() : (event.returnValue = false);
    
    0 讨论(0)
提交回复
热议问题