无法阻止被动事件jQuery内部错误的Default

时间:2018-09-03 13:36:04

标签: jquery touch

我在网站上使用汉堡菜单,当我单击它时,出现错误。

  

[Intervention]由于目标被视为被动,因此无法阻止被动事件侦听器中的Default。参见https://www.chromestatus.com/features/5093566007214080
  jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body = 1:4987

这是jQuery错误:

  // If preventDefault exists, run it on the original event
  if (e.preventDefault) {
    e.preventDefault(); // Shows the error is here.

    // Support: IE
    // Otherwise set the returnValue property of the original event to false
  } else {
    e.returnValue = false;
  }
},..

以前没有问题,我不知道发生了什么。谢谢您的帮助。

0 个答案:

没有答案