Skip to content

Commit

Permalink
refactor: cleanup not necessary method overrides (#3691)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Apr 18, 2022
1 parent 650c643 commit a1b5f7f
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,6 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
}
}

/** @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();
}
}

/**
* Override Enter handler to keep overlay open
* when item is selected or unselected.
Expand Down

0 comments on commit a1b5f7f

Please sign in to comment.