Vue-js-modal: Click-event in modal not triggered on mobile device

Created on 23 Mar 2020  路  9Comments  路  Source: euvl/vue-js-modal

on a webpage add a modal, in that modal add a button, add click-event to that button

In chrome:
Show a modal ok,
click on button, nicely triggered

In chrome with device toolbar toggled to a mobile device:
Show a modal ok,
click on button, NOT triggerd

help wanted stale

All 9 comments

Any suggestions ?

Someone have any suggestions?

According to this issue the click event isn't triggered when drag able is enabled on mobile.

As stated by Google, they've changed the behavior of passive event listeners only for window, document or body elements.

The fix is add { passive: true } to draggable touch events.

Is this issue happening on android devices? (Still seems to work for me on iphone)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed.

It seems issue is still happening. I just try demo page http://vue-js-modal.yev.io/, last modal "Dynamic: Component Modal with modal params" on my Android phone and chrome device devtool.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ar53n picture ar53n  路  4Comments

whaoran picture whaoran  路  3Comments

at0g picture at0g  路  3Comments

chris-rowe picture chris-rowe  路  4Comments

bicstone picture bicstone  路  4Comments