<选择>不适用于 Android 2.3.3 上的 Phonegap 应用程序 [英] &lt;select&gt; not working in Phonegap app on Android 2.3.3

查看:28
本文介绍了<选择>不适用于 Android 2.3.3 上的 Phonegap 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发适用于 Android 和 iOS 的 Phonegap 应用.大多数东西都运行得很好,但我遇到了 的 div 上

  • 在 div 上方的区域
  • 在该方案选项中显示出来,触发所选的更改事件并且执行与其绑定的代码.

    In that scenario options show up and when selected change event is fired and code bind to it is executed.

    我发现了这两个安卓问题:http://code.google.com/p/android/issues/detail?id=10280http://code.google.com/p/android/issues/detail?id=6721

    I found these two android issues: http://code.google.com/p/android/issues/detail?id=10280 and http://code.google.com/p/android/issues/detail?id=6721

    我已经尝试了那里提到的解决方法,但它们没有改变任何东西.我仍然需要点击两次,但这不是我所追求的行为.我只需要一键.

    I have tried the workarounds mentioned there but they don't change anything. I still have to do two clicks but it's not the behavior I'm after. I only need one click.

    问题仅存在于 Android 2.3.3 上,我认为在旧版本上也是如此.在 iOS 和更新的 Android 上一切正常.

    Issue exists only on Android 2.3.3 and I think on older versions too. On iOS and newer Androids everything works perfectly fine.

    我整天都在为这个问题苦苦挣扎,并尝试了一切.

    I'm struggling with this issue whole day and tried everything.

    任何帮助、提示将不胜感激.谢谢.

    Any help, tips would be heavily appreciated. Thanks.

    推荐答案

    您是否尝试将 data-native-menu="false" 属性添加到选择菜单.

    Did You try adding data-native-menu="false" attribute to the select menu.

    示例:

    <select name="gender" id="gender" data-theme="b" data-native-menu="false" >
        <option value="">Please specify ...</option>
        <option value="option1">Male</option>
        <option value="option2">Female</option>
        <option value="option3">Undisclosed</option>
    </select>
    

    这篇关于<选择>不适用于 Android 2.3.3 上的 Phonegap 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆