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: do not clear on Esc with clear button visible when readonly #8455

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

web-padawan
Copy link
Member

Description

Fixes #8448

  • Added missing logic and tests to check readonly property before clearing value on Esc
  • Refactored ComboBoxMixin listener to remove duplication and only check for readonly once

Type of change

  • Bugfix

Note

Ideally this change would require moving readonly property to ClearButtonMixin since it's now used there.
However we already have some problems with mixins structure since e.g. ComboBoxMixin and DatePickerMixin technically use clearButtonVisible while not extending ClearButtonMixin. So maybe we can keep it as is for now.

Copy link

sonarqubecloud bot commented Jan 8, 2025

@web-padawan web-padawan removed the request for review from vursen January 8, 2025 14:57
@web-padawan web-padawan merged commit 76ba241 into main Jan 8, 2025
9 checks passed
@web-padawan web-padawan deleted the fix/clear-button-readonly branch January 8, 2025 14:59
web-padawan added a commit that referenced this pull request Jan 8, 2025
web-padawan added a commit that referenced this pull request Jan 8, 2025
web-padawan added a commit that referenced this pull request Jan 9, 2025
@vaadin-bot
Copy link
Collaborator

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