unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.06k stars 735 forks source link

[Android] Native combobox not opening when placed in contentDialogs #11000

Closed Marc-Antoine-Soucy closed 1 year ago

Marc-Antoine-Soucy commented 1 year ago

Current behavior

comboboxAndroid

The combobox doesnt open.

Expected behavior

comboboxWindows It should open like in windows.

How to reproduce it (as minimally and precisely as possible)

nativecombobox.zip

Workaround

We can leave this: Uno.UI.FeatureConfiguration.Popup.UseNativePopup = true; at false (the default state). But, then we have this issue: https://github.com/unoplatform/uno/issues/10339

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

<PackageReference Include="Uno.WinUI" Version="4.6.39" />
    <PackageReference Include="Uno.WinUI.RemoteControl" Version="4.6.39" Condition="'$(Configuration)'=='Debug'" />
    <PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.6.39" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
    <PackageReference Include="Uno.WinUI.Lottie" Version="4.6.39" />

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

Version 17.4.1

Relevant plugins

No response

Anything else we need to know?

Issue is present on latest pre-release as well.

Youssef1313 commented 1 year ago

Duplicate of https://github.com/unoplatform/uno/issues/1583

jeromelaban commented 1 year ago

It is indeed a duplicate. You can try the workaround and let us know.

Marc-Antoine-Soucy commented 1 year ago

@jeromelaban Yeah, I should have looked further in the past, and I would have found the issue. Lesson learned. And yes, the workaround does work, but as mentioned in this issue, we would have prefer to not use the workaround because of this issue: https://github.com/unoplatform/uno/issues/10339.