label not clickable in jqtouch

前端 未结 5 1261
攒了一身酷
攒了一身酷 2021-01-14 11:40

With following code I can not click on labels in jqtouch (on iphone simulator and iphone itself):

5条回答
  •  走了就别回头了
    2021-01-14 12:18

    thanks to @Ivan I found better solution:

      $('label[for],input[type="radio"]').bind('click', function(e) {
        e.stopPropagation();
      });
    

    Additionally it fixes radio buttons.

    The only downside is - it stops propagation, but in my case it is ok.

提交回复
热议问题