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

Clear button does not clear uncommitted text in DatePicker and TimePicker #3377

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

nicolaihenriksen
Copy link
Contributor

Fixes #3369

For DatePicker and TimePicker the clear button only cleared the underlying dependency property. This assumes that it actually has a value set. In case where arbitrary text is entered (valid or invalid) the clear button does not have an effect.

This PR effectively clears the underlying TextBox. It could probably be argued that the clearing of the DP may not be necessary anymore, but I have not (yet) removed that code. What are your thoughts?

@nicolaihenriksen nicolaihenriksen changed the title ClearButton does not clear uncommitted text in DatePicker and TimePicker Clear button does not clear uncommitted text in DatePicker and TimePicker Nov 21, 2023
@Keboo Keboo added this to the 5.0.0 milestone Nov 21, 2023
@Keboo Keboo merged commit 6d1ea72 into master Nov 21, 2023
2 checks passed
@Keboo Keboo deleted the fix3369 branch November 21, 2023 19:16
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.

DatePicker Clear Button doesn't work
2 participants