Repository navigation
Conversation
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes dotnet#8874).
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39971Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39971" |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@fmazzant! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey there @fmazzant! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit c32cb30.
PR Test Gate🧪 Gate analysis — click to expand✅ Passed. The selected verification satisfied the gate's passing conditions. Unmatched, skipped, or inconclusive groups are not passing evidence. 🧪 Unit tests
Execution log excerptsWithout fix With fix PR head: c32cb301. Without-fix baseline: e6abee71. |
fmazzant
left a comment
There was a problem hiding this comment.
Thanks for checking, @kubaflo! I looked into it and I don't think the failures come from this change.
The Picker failures are only in the MacCatalyst UI tests, and almost every category fails there, not just Picker. The logs show the app window ends up partly off-screen on the agent (window pixels (-384,60,...) are outside screenshot bounds), so screenshots don't match and some taps miss. That's why Picker_SetSelectedIndex_VerifySelectedIndexAndItem reads -1. main fails the same way, including that test (e.g. build 1667202). It seems to have started around Nov 4, maybe after #39876, but I haven't checked that on a Mac.
On the unit test side, all Picker tests pass. The only failure is ToolbarTests.RemoveRootPageHidesBackButton on the Windows Debug job, which passes everywhere else and locally, so it looks flaky.
Could you re-run the failed checks when you get a chance? Thanks!
8fe018c
into
dotnet:candidate/11.0.1xx-sr2
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes dotnet#8874). <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes dotnet#8874 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem by only updating SelectedIndex if the value changes. Adds a unit test to ensure that changing ControlTemplate from SelectedIndexChanged does not cause recursive events (fixes #8874).
Description of Change
Issues Fixed
Fixes #8874