dotnet / dotnet/maui

HybridWebView on Android doens't allow Select dropdowns

Open
#29,454 2 comments 0 reactions 0 assignees View on GitHub
area-controls-hybridwebview has-workaround partner/syncfusion platform/android s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

The Hybrid WebView on Android does not allow one to select options. The interactivity is broken. You can focus on the select box, but cannot select any items.

The code to render the select dropdown is pasted below the image:

![Alt text](https://raw.githubusercontent.com/lhughey/HybridWebViewSelect/refs/heads/main/selectNotWorkingAndroid.gif?raw=true)

```



Choose:

One
Two


```

### Steps to Reproduce

1. Create a new dotnet 9 maui app
2. Add a hybridWebview, add a very basic Android handler.
3. add static html content with a select dropdown
4. try to interact with the dropdown. You can focus on the select, but cannot (select an option).

See repro project for details.
This works with iOS.

### Link to public reproduction project repository

https://github.com/lhughey/HybridWebViewSelect

### Version with bug

9.0.14 SR1.4

### Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

Android 13 and up

### Did you find any workaround?

I've not found a workaround. I need two-way JS communication - Having a proper hybrid web view is very important.

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with the public HybridWebViewSelect reproduction project and inspect its basic Android handler and static HTML select markup. Reproduce on Android 13 or later, then trace the Android HybridWebView interaction; done means users can open the dropdown and select an option while two-way JavaScript communication still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp, html
Domain
mobile, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.