byron
byron

Reputation: 994

HTML <select> control disabled in Android WebView (in emulator)

I have a very simple Android app that's just a WebView. Everything works fine (complex Javascript etc.). However, all of the HTML select controls seem to be disabled. They display with default values, but nothing happens when I click on them, and they don't get the orange highlight when I arrow through the controls.

Other inputs (text, radios, submit) work fine, so I don't think it's a focus issue.

Configuration:

Upvotes: 6

Views: 5632

Answers (4)

Daniel
Daniel

Reputation: 1799

2 years after the fact, but in case someone pulls this up again:

If it's android 2.3, put   in every empty child element of a fixed position parent. I found that this fixed the problem for me.

Upvotes: 0

R T
R T

Reputation: 195

Same Problem, fixed it by setting position:relative on the li's containing the select fields

Upvotes: 0

Hallvar Helleseth
Hallvar Helleseth

Reputation: 1867

I had the same problem. My problem was fixed by changing overflow:hidden to overflow:visible on a containing element.

Upvotes: 2

Andrin von Rechenberg
Andrin von Rechenberg

Reputation: 647

I had the same problem.

In my case I had elements on the page that had the style position:fixed;

Although the bounding boxes of the select element and the fixed positioned elements did NOT overlap, I wasn't able to open the select dialog.

By removing a couple of fixed positioned elements I got it to work. Seems to be a bug in webview.

Upvotes: 0

Related Questions