Skip to content

fix(calendardatepicker): fix open on tap, close on escape - #13056

Merged
MartinZikmund merged 20 commits into
unoplatform:masterfrom
ramezgerges:calendar_tests
Aug 9, 2023
Merged

MartinZikmund merged 20 commits into
unoplatform:masterfrom
ramezgerges:calendar_tests

Conversation

@ramezgerges

@ramezgerges ramezgerges commented Jul 30, 2023 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #10165

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

Copilot Summary

🤖 Generated by Copilot at e81f61d

This pull request enhances the CalendarDatePicker control with better integration tests and a tap-to-open feature. It also adds a keyboard shortcut to close flyouts and fixes a bug with routed events for popups.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@ramezgerges

Copy link
Copy Markdown
Contributor Author

The test seems to fail on Skia UnoIslands and iOS, both at WaitForOpened. I'm guessing it has something to do with focusmanager not selecting the popup? @MartinZikmund any insight?

@ramezgerges

Copy link
Copy Markdown
Contributor Author

The focus management changes brokes several other tests. For example, on Android, these don't work:
image

At this point I'm feeling very stuck.

@MartinZikmund

Copy link
Copy Markdown
Member

@ramezgerges You are getting "src\Uno.UI\UI\Xaml\Controls\Popup\Popup.Base.cs(84,4): Error CS0234: The type or namespace name 'Instance' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)" - which is because you clash with CoreServices namespace on iOS. You can do alias it as WinUICoreServices instead

@MartinZikmund
MartinZikmund enabled auto-merge August 9, 2023 10:35
@MartinZikmund
MartinZikmund merged commit 9dd0e49 into unoplatform:master Aug 9, 2023
@MartinZikmund

Copy link
Copy Markdown
Member

@Mergifyio backport legacy/4x

@mergify

mergify Bot commented Aug 9, 2023 •

Copy link
Copy Markdown
Contributor

backport legacy/4x

✅ Backports have been created

Details

MartinZikmund added a commit that referenced this pull request Aug 10, 2023
fix(calendardatepicker): fix open on tap, close on escape (backport #13056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CanOpenFlyoutByTapping, CanCloseFlyoutBySelectingADate, and PressingDoesNotOpenMenuFlyout tests are failing

4 participants