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
8.79k stars 707 forks source link

[iOS] Keyboard is Dismissed when trying to scroll the ListView #16180

Open Soap-141 opened 5 months ago

Soap-141 commented 5 months ago

Current behavior

Currently, on Android when we focus a field in a ListView footer, we can scroll it, but not on iOS.

Android Animation_142-ezgif com-optimize

iOS Animation_143-ezgif com-optimize

Haven't been able to test iOS on the provided sample application, but I was able to test it in UnoApplicationTemplate.

Expected behavior

iOS behavior should match Android, we should be able to scroll the ListView while focusing on the textbox in the footer.

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

  1. Download UnoListViewKB.zip
  2. Start it on iOS and Android
  3. Notice the different behaviors

Workaround

No response

Works on UWP/WinUI

None

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

5.3.0-dev.107

Affected platforms

iOS

IDE

Visual Studio 2022

IDE version

17.9.5

Relevant plugins

No response

Anything else we need to know?

agneszitte commented 5 months ago

@Soap-141 I am curious, are you able to reproduce the issue with current latest stable 5.1.104 as well ? Or just with latest dev 5.3.0-dev.107 ?

Soap-141 commented 5 months ago

@Soap-141 I am curious, are you able to reproduce the issue with current latest stable 5.1.104 as well ? Or just with latest dev 5.3.0-dev.107 ?

@agneszitte Yes pretty sure, it was the version used at first with the sample application before I updated to latest. And it's an issue with 4.10.37 or latest stable for Uno 4.

agneszitte commented 5 months ago

@Soap-141 I am curious, are you able to reproduce the issue with current latest stable 5.1.104 as well ? Or just with latest dev 5.3.0-dev.107 ?

@agneszitte Yes pretty sure, it was the version used at first with the sample application before I updated to latest. And it's an issue with 4.10.37 or latest stable for Uno 4.

Thanks a lot for all the versions details @Soap-141, really appreciated. We will look into the issue.

agneszitte commented 5 months ago

@MartinZikmund, @dr1rrb, @ajpinedam I would like your input on this issue, please What would be the correct default behavior here (based on Windows I imagine)? Will it involve something like scrolldismisseskeyboard for iOS?

Youssef1313 commented 5 months ago

This feels like a focus bug where focus is lost when it shouldn't?

MartinZikmund commented 5 months ago

The unfocus could be coming from the input bubbling up to root visual here, but just a guess.