You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
部分微信版本:使用van-dropdown-item 组件会导致页面中的按钮事件失效。
原因:van-dropdown-item 中使用了的 van-popup 其中bind:after-leave="onClosed"。 理想情况情况下拉菜单关闭后将会执行onClosed方法,在onClosed方法中会执行showWrapper的关闭,但部分微信版本,在下拉菜单关闭时并没有触发showWrapper。从而导致wrapper的z-index大于页面中的组件,页面实际上覆盖了一层wrapper。
自己项目中的解决方案:在onClose中执行showWrapper的关闭。
忘vant的团队在具体看看是什么问题,并且及时修复。
ps: 微信调用基础库: 2.22.0
Beta Was this translation helpful? Give feedback.
All reactions