mui 页面提示:Unable to preventDefault inside passive

以下便是我做mui 页面提示:Unable to preventDefault inside passive的方式,不知道是否正确,欢迎大佬吐槽。
页面提示:
点击该事件:页面提示:【8mui.min.js:7 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See http://www.8sk.cn/article/155.html】

解方法:给您的样式中加入下面的样式即可解决去掉错误提示。

{ touch-action: none; }
就是这么简单不知道大家学会了没有,若是哪里做的不对欢迎大家前来吐槽。

猜你喜欢

转载自blog.csdn.net/qq_43223721/article/details/82993773