appframework icon indicating copy to clipboard operation
appframework copied to clipboard

af.selectBox-script breaks dropdowns on android 2.3.6

Open dc-apps opened this issue 13 years ago • 8 comments

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.

dc-apps avatar Oct 29 '13 12:10 dc-apps

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

imaffett avatar Oct 29 '13 12:10 imaffett

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).

dc-apps avatar Oct 29 '13 12:10 dc-apps

Which device are you using?

Does the kitchen sink select demo/form demo's work?

imaffett avatar Oct 29 '13 12:10 imaffett

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).

dc-apps avatar Oct 29 '13 12:10 dc-apps

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.

imaffett avatar Oct 29 '13 12:10 imaffett

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...

dc-apps avatar Oct 29 '13 13:10 dc-apps

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.

imaffett avatar Oct 29 '13 13:10 imaffett

thanks a LOT! :)

dc-apps avatar Oct 29 '13 13:10 dc-apps