Skip to content

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Feb 2, 2025

Issues Fixed

Fixes #27519
Fixes #29633

Before After
Screen.Recording.2025-02-02.at.17.31.28.mov
Screen.Recording.2025-02-02.at.17.27.28.mov

@kubaflo kubaflo requested a review from a team as a code owner February 2, 2025 16:46
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 2, 2025
@kubaflo kubaflo added platform/macos macOS / Mac Catalyst area-controls-picker Picker labels Feb 2, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@kubaflo kubaflo force-pushed the When-opening-the-Picker,-the-first-item-is-selected-instead-of-the-currently-selected-item branch from 3cbf163 to c28f19f Compare February 3, 2025 12:00
pickerView?.ReloadAllComponents();
var source = (PickerSource)pickerView.Model;
source.SelectedIndex = selectedIndex;
pickerView.Select(Math.Max(selectedIndex, 0), 0, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a clamp with the min max? What happens if the selected index is larger than the number of items? Can it be larger?

bool OnShouldBeginEditing (UITextField textField)
bool OnShouldBeginEditing(UITextField textField)
{
if (Handler is not PickerHandler handler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mayne just bail out if virtual view is null like the end editing instead of the null check but still shopping the popup.

@jfversluis
Copy link
Member

/rebase

@github-actions github-actions bot force-pushed the When-opening-the-Picker,-the-first-item-is-selected-instead-of-the-currently-selected-item branch from b5c831a to eb74096 Compare August 12, 2025 10:24
Copilot AI review requested due to automatic review settings August 12, 2025 10:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jfversluis jfversluis changed the base branch from main to inflight/current August 12, 2025 10:32
@jfversluis jfversluis force-pushed the When-opening-the-Picker,-the-first-item-is-selected-instead-of-the-currently-selected-item branch from eb74096 to 8f3e1e9 Compare August 12, 2025 10:41
@jfversluis jfversluis added this to the .NET 9 SR11 milestone Aug 12, 2025
@jfversluis jfversluis merged commit f535b57 into dotnet:inflight/current Aug 12, 2025
1 check passed
github-actions bot pushed a commit that referenced this pull request Aug 15, 2025
github-actions bot pushed a commit that referenced this pull request Aug 15, 2025
github-actions bot pushed a commit that referenced this pull request Aug 19, 2025
github-actions bot pushed a commit that referenced this pull request Aug 22, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-picker Picker community ✨ Community Contribution platform/macos macOS / Mac Catalyst

Projects

None yet

5 participants