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.26k stars 1.76k forks source link

[iOS] CollectionView stops allowing scrolling when the keyboard is closed on iOS #25848

Open TrueMoniker opened 1 week ago

TrueMoniker commented 1 week ago

Description

If the following conditions are met, the collection view will not scroll.

  1. Running on iOS
  2. The header and footer do not fully fit on the screen when the collection items are shown
  3. All items in the collection fit on the screen
  4. The keyboard is opened and then closed. This sometimes takes multiple tries.

https://github.com/user-attachments/assets/2e7773c9-763c-40f3-bf1f-359a00fcfe58

Steps to Reproduce

  1. Create a CollectionView
  2. Add collection items that can all fit on the screen at once.
  3. Create an item template for your items. Include an Entry with ReturnType="Done" so you can open and close the keyboard
  4. Add a header and footer that is large enough to take up most of the screen
  5. Run the app
  6. Scroll the collection view so all collection items are displayed on the screen
  7. Enter values into an entry.
  8. Close the keyboard with the done key
  9. Try to scroll
  10. Repeat step 6-8. After a few times (typically 2-3), the CollectionView will not scroll.

Link to public reproduction project repository

https://github.com/TrueMoniker/Maui_iOS_CollectionViewScrollFreeze

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

Reproduced on iOS 15.8.3 & 18.0

Did you find any workaround?

Unable to find work around

Relevant log output

similar-issues-ai[bot] commented 1 week ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

Zhanglirong-Winnie commented 1 week ago

This issue has been verified using Visual Studio 17.13 Preview 1(9.0.0-rc.2.24503.2 & 8.0.82 & 8.0.93 &8.0.3). Can repro this issue on iOS platform.