Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级 iOS 13 之后 SwipeItem 内部链接要点两次才能触发 #88

Open
geminiyellow opened this issue Sep 26, 2019 · 3 comments
Open

Comments

@geminiyellow
Copy link

<swipe>
  <swipe-item>
    <a href='www.google.com'>
        <img src='...' />
    </a>
  </swipe-item>
</swipe>

这样的内容,在 iOS 12 的时候没有问题。
但是昨天更新了 iOS 13 之后,内部链接必须点第二次才能触发。
直觉上是第一次没 focus 没把组件完全 render 出来,事件触发不了,
第二次被 focus 激活了之后,才被正确的执行了。

不懂这是 vue 的问题还是 swipe 的问题。

@TRZhangjie
Copy link

@geminiyellow 你好,请问有解决吗

@geminiyellow
Copy link
Author

@TRZhangjie 没,然后我不记得我怎么做的了

@Tingglelaoo
Copy link

@TRZhangjie 可以在 外包装一层 div 进行监听点击当前的 index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants