ionic 項目下 有時候發現select標簽用動態數據綁定后點擊出不來的情況


一 第一種方法

 在select 標簽的父標簽加上  data-tap-disabled=”true”

找到 ionic.bundle.js文件 下邊有個方法

function tapIgnoreEvent(e) {
if (e.isTapHandled) return true;
e.isTapHandled = true;

if(ionic.tap.isElementTapDisabled(e.target)) {
return true;
}

if (ionic.scroll.isScrolling && ionic.tap.containsOrIsTextInput(e.target)) {
e.preventDefault();
return true;
}
}

一般是這樣的,需要在這個方法里邊加上

 //添加下面這兩行代碼,位置和其它if同級即可  if(e.target.tagName == 'SELECT') { return true; }


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM