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!: align hasInputValue behavior across components #8200

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Nov 21, 2024

Description

DatePicker and TimePicker counterparts have been recently updated to no longer rely on the hasInputValue property for detecting bad input. This removes the need for workarounds that caused the hasInputValue behavior to be inconsistent with other components

Fixes #5639

Type of change

  • Refactor

@vursen vursen marked this pull request as ready for review November 21, 2024 13:34
@vursen vursen requested a review from web-padawan November 21, 2024 13:36
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe we could also deprecate _hasInputValue property and the corresponding event if it's not supposed to be used anymore. This can be done separately though.

@vursen
Copy link
Contributor Author

vursen commented Nov 21, 2024

LGTM. Maybe we could also deprecate _hasInputValue property and the corresponding event if it's not supposed to be used anymore. This can be done separately though.

NumberField still uses it, but we could likely refactor it, which will remove the last dependency and let us deprecate this property.

@vursen vursen merged commit 3e1f22b into main Nov 21, 2024
9 checks passed
@vursen vursen deleted the remove-has-input-value-workaround branch November 21, 2024 14:16
@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.

hasInputValue is not always updated accurately
3 participants