起因在于


onBeforeScrollStart : function(e){ e.preventDefault(); },

这一行,iSroll禁止了事件的默认行为,导致select,option,textarea等元素无法点击。
解决方法也很简单,只需做一下判断,如下:
onBeforeScrollStart : function(e){
  var nodeType = e.explicitOriginalTarget ? e.explicitOriginalTarget.nodeName.toLowerCase() : (e.target ? e.target.nodeName.toLowerCase() : '');
  if(nodeType != 'select' && nodeType != 'option' && nodeType != 'input' && nodeType != 'textarea'){
     e.preventDefault();
  }
},




相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-04-08
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案