Skip to content

Fix TimePicker breaking change, when using pre-11.2 styles #17516

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

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Nov 15, 2024

What does the pull request do?

In 11.2 TimePicker got a new feature with seconds picker option.
Unfortunately, TimePicker templates are very limiting, and any such change breaks templates from third party themes, which weren't updated at the exact time (so, all of them).

This PR adds a check, whether template is up-to date or not, before trying to access second template parts.

For the better fix see #17515

What is the current behavior?

NullReferenceException, if pre-11.2 template is used with 11.2 control.

What is the updated/expected behavior with this PR?

Seconds are ignored, if pre-11.2 template is used with 11.2 control.

Tested by applying 11.1 control theme to the control.

@maxkatz6 maxkatz6 added bug backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch backported-11.2.x and removed backported-11.2.x labels Nov 15, 2024
@maxkatz6 maxkatz6 merged commit a5f5b8f into master Nov 15, 2024
3 of 11 checks passed
@maxkatz6 maxkatz6 deleted the fix-timepicker-breaking-change branch November 15, 2024 00:41
@maxkatz6 maxkatz6 removed the backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch label Nov 19, 2024
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.

1 participant