Skip to content

Commit

Permalink
refactor: remove unused code from time-picker (#3690) (#3694)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed Apr 19, 2022
1 parent 3cc0698 commit 6a35fdf
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/time-picker/src/vaadin-time-picker-combo-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,6 @@ class TimePickerComboBox extends ComboBoxMixin(ThemableMixin(PolymerElement)) {
// See https://github.com/vaadin/vaadin-time-picker/issues/145
this.setAttribute('dir', 'ltr');
}

/** @protected */
_isClearButton(event) {
return (
super._isClearButton(event) ||
(event.type === 'input' && !event.isTrusted) || // fake input event dispatched by clear button
event.composedPath()[0].getAttribute('part') === 'clear-button'
);
}

/**
* @param {!Event} event
* @protected
*/
_onChange(event) {
super._onChange(event);

if (this._isClearButton(event)) {
this._clear();
}
}
}

customElements.define(TimePickerComboBox.is, TimePickerComboBox);

0 comments on commit 6a35fdf

Please sign in to comment.