-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[MacOS] Picker's dialog improvement #27525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MacOS] Picker's dialog improvement #27525
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
3cbf163 to
c28f19f
Compare
| pickerView?.ReloadAllComponents(); | ||
| var source = (PickerSource)pickerView.Model; | ||
| source.SelectedIndex = selectedIndex; | ||
| pickerView.Select(Math.Max(selectedIndex, 0), 0, true); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
c28f19f to
b5c831a
Compare
|
/rebase |
b5c831a to
eb74096
Compare
There was a problem hiding this 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.
eb74096 to
8f3e1e9
Compare
Issues Fixed
Fixes #27519
Fixes #29633
Screen.Recording.2025-02-02.at.17.31.28.mov
Screen.Recording.2025-02-02.at.17.27.28.mov