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: remove unused code from time-picker #3690

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

web-padawan
Copy link
Member

Description

This code was introduced in #2618 and appears to be a copy-paste from vaadin-combo-box-light component.
The _onChange override is not needed because the clear button click is handled in ComboBoxMixin:

_handleClearButtonClick(event) {
event.preventDefault();
this._clear();

Also _isClearButton() override isn't needed because in case of time-picker we can be sure that clearElement exists by the time when the component is initialised, and this.querySelector('[part="clear-button"]') returns a reference to it.

Type of change

  • Refactor

@sonarcloud
Copy link

sonarcloud bot commented Apr 18, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@web-padawan web-padawan merged commit 650c643 into master Apr 18, 2022
@web-padawan web-padawan deleted the refactor/time-picker-cleanup branch April 18, 2022 13:23
web-padawan added a commit that referenced this pull request Apr 18, 2022
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Apr 19, 2022
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

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

None yet

3 participants