af.selectBox-script breaks dropdowns on android 2.3.6
Our web app had broken dropdowns on android 2.3.6. Users could not open the dropdown, and it looked wrong (no white background!). The fix was (apparently) to remove the selecBox-script from appframework.min.js. I'm not sure what the side effects are when removing the script, but it was the only solution as far as I could see.
The select boxes will not be available to users on Andrioid <4 when the page scrolls due to a bug in Webkit (do a google search and you will see a ton of bugs)
http://code.google.com/p/android/issues/detail?id=12332
Closing as this isn't an issue, and a bad suggestion to other developers. If you want to help track down the bug in 2.3.6, create another issue and a sample code showing where it fails
Ok, thanks. But how do one put a dropdown in an app that is supposed to run on old android versions?
Here is the problem demonstrated: http://dcapps.no/test < click "Start testen" and observe the useless dropdown (on android 2.3.6)
http://drugtest-app.com/app < Here we removed the script, and the input works (ish).
Which device are you using?
Does the kitchen sink select demo/form demo's work?
The bug was reported by a customer using a SAMSUNG GALAXY X-cover GT-S5690, but I was able to reproduce it on the android emulator with any version below 2.3.6 as well. This has not been an issue earlier, but I'm unsure which update broke it (we haven't tested on old devices in a month or two). The kitchen sink doesn't contain any dropdown selects at all that I can see? Other input-types are fine (both in the kitchen sink and our actual app).
Yes it does. In the forms section, along with "plugins -> Select box"
Sorry -I've got meetings and a busy week, so I won't be able to help anymore. Will flag as community and hopefully someone can help.
Note - I have 2.3.5 and 2.3.6 devices on my desk (Galaxy S2 and Xperia Play) both work fine.
Ok, thanks for your help. I found the plugins-section now. The exact same problem arises with the kitchen sink app! No response from the select-dropdown what so ever...
Ok - the code is fine. There was a display:none in the css file, so it was technically in the DOM, but not showing. My device was on a different branch, which is why it worked there. Pushing up the fix now - it's a CSS update.
thanks a LOT! :)