原生mobile-select选择器,选择时报错 Unable to preventDefault inside passive event listener invocation.原因,处理办法

import 'default-passive-events' //这是为了解决警告[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive。

default-passive-events 会覆盖mobile-select选择器的preventDefault方法。在安卓手机上会出现! 如图中的BUG11.png。
解决方法:

// import 'default-passive-events' //不能在使用这句话了。

你可能感兴趣的:(原生mobile-select选择器,选择时报错 Unable to preventDefault inside passive event listener invocation.原因,处理办法)