dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Android First Editor gets focused when used inside a Popup #23960

Open SchittkowskiMS opened 3 months ago

SchittkowskiMS commented 3 months ago

Description

When using a Popup (like from the CommunityToolkit.Maui or Syncfusion.Maui) which has a editor control inside the content, when the popup appears on android the first editor gets focused. Sometimes the keyboard is also opened but not always. This behavior doesnt happen on iOS or Windows.

This is not wanted as there might be a placeholder/watermark in the editor, which then disappears. Also selecting the last control on a view as the popup opens is not intended.

Steps to Reproduce

  1. Create Maui-App
  2. Add Popup nuget (Tested with: CommunityToolkit.Maui and Syncfusion.Maui)
  3. Open popup on android which contains at least one editor control
  4. Editor gets focus

Link to public reproduction project repository

https://github.com/SchittkowskiMS/MauiPopupEditorTest

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

Setting the Editor to be Disabled and to Enabled after the popup is loaded

Relevant log output

No response

github-actions[bot] commented 3 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Zhanglirong-Winnie commented 3 months ago

This issue has been verified using Visual Studio 17.11.0 Preview 6.0(8.0.71&8.0.61 & 8.0.10). Can repro on Android platform. image