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

refactor: cleanup no longer needed date-time-picker logic #8091

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

web-padawan
Copy link
Member

Description

Removed logic for propagating properties to default pickers since that is covered by individual observers since #4971. Some of these properties were removed in #4987 but not all of them, removed remaining ones and tests still pass.

Also removed logic for time-picker value update on min change since we no longer adjust value based on min or max since V24 as of #4987 (the original logic was there since V14 version and is no longer needed).

Also, updated logic for setting i18n on individual pickers to only set relevant properties using __syncI18n() method.

Type of change

  • Refactor

@@ -481,7 +474,6 @@ export const DateTimePickerMixin = (superClass) =>

// Disable default internal validation for the component
newDatePicker.validate = () => {};
newDatePicker._validateInput = () => {};
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no such method anymore, this is a leftover from V14 version.

Copy link

sonarqubecloud bot commented Nov 5, 2024

@web-padawan web-padawan removed the request for review from tomivirkki November 7, 2024 07:59
@web-padawan web-padawan merged commit 8d91c82 into main Nov 7, 2024
9 checks passed
@web-padawan web-padawan deleted the refactor/dtp-cleanup branch November 7, 2024 08:04
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha3 and is also targeting the upcoming stable 24.6.0 version.

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.

3 participants