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

fix: ensure invalid state is correctly set on slotted pickers #7074

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

web-padawan
Copy link
Member

Description

Fixes #7073

Due to the change in #6922, the component always sets invalid property on isInvalid() on attach. While this makes sense in general, it turns out that calling setInvalid(true) on the DateTimePicker does not update corresponding state on its slotted pickers and they end up sending invalid = false to the client on initialisation.

Note: I'm not sure if this needs an IT since the problem is that isInvalid() returns wrong value and that's now covered with a unit test. Just to clarify, this problem can't be reproduced in the web component (without ClientValidationUtil logic).

Type of change

  • Bugfix

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.7.0.alpha7 and is also targeting the upcoming stable 24.7.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.

invalid attribute is not set on date-picker/time-picker when the date-time-picker is invalid
3 participants