组合框加载后不工作/在页面中使用iscroll [英] combo box not working after load/use iscroll in page
问题描述
我在我的应用程序中使用iscroll4。我面临的问题,使iScroll下拉列表(组合框)不可用,同时使用。
我试着他们在这里提到了
( http:/ /groups.google.com/group/iscroll/browse_thread/thread/5b2fbad6aa667907# )
I am using iscroll4 in my application. I am facing problem with iScroll that made drop down lists(combo box) unusable when used at the same time. I tried how they mentioned here ( http://groups.google.com/group/iscroll/browse_thread/thread/5b2fbad6aa667907# )
$(document).ready(function() {
var destinations_scroll, accounts_scroll;
function loadingIscroll() {
accounts_scroll = new iScroll('accounts_container');
destinations_scroll = new iScroll('destinations_container', {
checkDOMChanges: true
});
setTimeout(function() {
destinations_scroll.refresh();
}, 0);
}
document.addEventListener('touchmove', function(e) {
if (e.target.tagName != "SELECT") {
e.preventDefault();
e.stopPropagation();
}
}, false);
addEventListener('DOMContentLoaded', loadingIscroll, false);
});
但仍然选择框(组合框/下拉)不工作。有什么建议么?
But still select box (combo box/drop down) not working. Any suggestions?
推荐答案
您好,我得到了 iScroll 4问题与形式< select>元素iphone safari和android浏览器。感谢@comonitos。我用他的解决方案。
Hi I got an answer from iScroll 4 problem with form <select> element iphone safari and android browser. Thanks to @comonitos. I used his solution.
这篇关于组合框加载后不工作/在页面中使用iscroll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!