euvl / vue-js-modal

Easy to use, highly customizable Vue.js modal library.
http://vue-js-modal.yev.io
MIT License
4.36k stars 594 forks source link

fix: click-event in draggable modal not triggered on mobile device #808

Open coderi421 opened 1 year ago

coderi421 commented 1 year ago

Hello, Yev Vlasenko @euvl ~ At first, thank you for your good plugin~

In the process of using the dragable model, I found that the click-event of the mobile device would has some problems, so I made the following correction.

  1. add a "undraggableElement" prop params for configuring undraggable elements, which is more convenient to use
  2. modified the "isInput" method and the INPUT_NODE_NAMES constants to better adapt to the the mobile`s click-event

The above fix can solve the problem on mobile~

Limited ability, make it better~