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: ensure Lit month calendars are rendered synchronously #8220

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Nov 25, 2024

Description

The PR refactors date-picker to ensure that the initial rendering of Lit month calendars happens synchronously. This eliminates rendering differences between the Lit and Polymer versions, which were causing test failures in #8187.

Type of change

  • Refactor

this._debouncerUpdateClones.cancel();
}

if (this.__pendingFinishInit) {
Copy link
Contributor Author

@vursen vursen Nov 25, 2024

Choose a reason for hiding this comment

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

note: Some tests finish before the _finishInit handler is executed. In such cases, we need to cancel its execution to prevent performUpdate from throwing an exception.

Copy link
Member

Choose a reason for hiding this comment

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

IMO we should also consider updating these tests to wait for overlay open.

@vursen vursen marked this pull request as ready for review November 25, 2024 07:30
@vursen vursen requested a review from web-padawan November 25, 2024 07:31
@vursen vursen merged commit d954c55 into main Nov 25, 2024
9 checks passed
@vursen vursen deleted the force-calendars-to-render-sync branch November 25, 2024 08:39
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.beta3 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