dotnet / dotnet/maui

Rotating the My Recipe page would cause the page to automatically switch selection to the 2nd item.

Open
#29,264 6 comments 0 reactions 0 assignees View on GitHub
csi-new platform/ios s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

After rotating the screen for the My Recipes page, the selection automatically switches to the 2nd item.

### Steps to Reproduce

1. Deploy https://github.com/dotnet/maui-samples/tree/whattoeat to iOS.
2. Click on My Recipe tab.
3. Rotate the screen to the right and rotate it back to the original position, the selection would automatically switch to the 2nd item.

**Actual Behavior:**
After rotating the screen for the My Recipes page, the selection automatically switches to the 2nd item.

![Image](https://github.com/user-attachments/assets/e42a46b2-1081-421b-b908-7c3871538917)

**Expected Behavior:**
The item shouldn't change from the original position even after rotating the screen.

![Image](https://github.com/user-attachments/assets/5dfb56af-64d4-4f7c-b55a-3459ed8129f1)

### Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/whattoeat

### Version with bug

Inflight/current - 9.0.70-ci.main.25229.20

### Is this a regression from previous behavior?

Not a regression. The issue can be reproduced on 9.0.60, 9.0.50 & 9.0.30 & 9.0.0.

### Affected platforms

iOS

Contributor guide

Open the contributing guide

Research direction

Start with the whattoeat reproduction project and deploy it to iOS. Open My Recipes, rotate the screen right and back, and trace why selection moves to the second item; done means the original selection remains after rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
57/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.