Skip to content
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

Enable light dismiss on CalendarDatePicker popup in simple theme #18092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickodei
Copy link
Contributor

What does the pull request do?

This sets IsLightDismissEnabled to True on the popup of the CalendarDatePicker control when using the simple theme. This was likely caused by the replacement of the StaysOpen property which was set to false. Link to the issue: #18066

What is the current behavior?

IsLightDismissEnabled is set to False which in turn does not allow to auto close the popup when clicking outside of its bounds.

What is the updated/expected behavior with this PR?

The popup now closes when using the simple theme and clicking outside of its bounds. This was the behavior bevor the commit that introduced this bug.

Checklist

Fixed issues

Fixes #18066

@nickodei
Copy link
Contributor Author

Tested it with the ControlCatalog. I think a test is not needed here

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.3.999-cibuild0054657-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Copy link
Contributor

@timunie timunie left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contribution

@timunie timunie enabled auto-merge January 31, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CalendarDatePicker does not support light dismiss in simple theme
3 participants