<选择>不工作在PhoneGap的应用程序在Android 2.3.3应用程序、工作、LT、GT

2023-09-12 09:48:43 作者:ゾ不服的,来单挑

我工作的PhoneGap应用程序的Andr​​oid和iOS。大部分的东西的作品pretty的很好,但我遇到的℃的问题,选择> 标记。它增强了使用jQuery Mobile,并在该版本的Andr​​oid适当的div被点击时/拍了拍选项没有显示出来。他们显示出来,当我做两次点击/水龙头:

I'm working on Phonegap app for Android and iOS. Most of the stuff works pretty well but I'm experiencing a problem with <select> tag. It's enhanced with jQuery mobile and on that version of Android when the appropriate div is clicked / tapped the options are not showing up. They show up when I do two clicks / taps:

在包含一个div &LT;选择&GT; 在上面的DIV A区 on a div containing <select> on a area above the div

在那种情况下的选择出现了,当选择改变事件被触发,code绑定到它被执行。

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

我发现这两个机器人的问题: http://$c$c.google.com/p/android/issues/detail?id=10280和 http://$c$c.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.

问题只存在于安卓2.3.3,我认为在旧版本了。在iOS和更新的机器人一切工作完全正常。

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.

任何帮助,提示会严重AP preciated。 谢谢你。

Any help, tips would be heavily appreciated. Thanks.

推荐答案

你尝试将数据添加本机菜单=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>