uView
uView copied to clipboard
u-dorpdown吸顶时引起的 gnored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted 错误
-
Bug: 当u-dorpdown你组件吸顶时,移动端滑动会出现Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted错误,
-
解决方案: 在u-dorpdown 中的open和close事件中重新计算 contentHeight 值,在关闭时,直接设置为0即可;
-
修改后的代码:
在u-dropdown.vue删掉@touchmove.stop.prevent,下拉菜单组件的遮罩层影响到了
将 uni-scroll-view-content 的样式进行如下覆盖
.xxx>>>.uni-scroll-view-content {height: auto;}