jquery.ui.touch.punch.js script is preventing input functionality on touch devices

前端 未结 9 1515
一个人的身影
一个人的身影 2021-02-01 06:38

It took me a little bit, but I figured out that I can\'t click on my inputs because of the touch.punch script I\'m using to enable jquery UI drag functionality on touch devices.

9条回答
  •  -上瘾入骨i
    2021-02-01 07:13

    One solution is to use a handle. Add an icon inside and use this to drag. Then the inputs work fine.

  • Move
  • $("#sortableList").sortable({ handle: ".move" });

提交回复
热议问题