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 that invalid state is set from the server #6922

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

DiegoCardoso
Copy link
Contributor

Description

Change the preventWebComponentFromModifyingInvalidState method in ClientValidationUtil class to always set the invalid state of the component on the client to override any client-side validation that may happen before the _shouldSetInvalid is overridden.

That's the root cause of the linked issue where a ComboBox can stay stuck in the invalid state on the client when the user calls setValue("") on the initialization of the component instance.

Fixes #6881

Type of change

  • Bugfix

Change the `preventWebComponentFromModifyingInvalidState` method in
`ClientValidationUtil` class to always set the invalid state of the
component on the client to override any client side validation that may
happen before the `_shouldSetInvalid` is overriden.

That's the root cause of the linked issue where a `ComboBox` can stay
stuck on invalid state on the client when user calls `setValue("")` on
the initialization of the component instance.

Fixes #6881
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.

ComboBox web component with mandatory value keeps invalid state after valid value has been set
4 participants