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: extract time-picker logic into reusable mixin #8079

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

web-padawan
Copy link
Member

Description

Extracted most of vaadin-time-picker logic into TimePickerMixin for reusing in Lit based version.

Note: ready() method isn't moved as the corresponding code in Lit has to be in firstUpdated().
Otherwise there are problems with initial validation especially constraints observer triggered twice.

See also the Lit version of vaadin-date-picker - IIRC the reason for not using ready() is the same:

firstUpdated() {
super.firstUpdated();

Type of change

  • Refactor

Copy link

sonarcloud bot commented Nov 1, 2024

@web-padawan web-padawan merged commit 9f323a8 into main Nov 1, 2024
9 checks passed
@web-padawan web-padawan deleted the refactor/time-picker-mixin branch November 1, 2024 13:45
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.

2 participants