Skip to content

Commit

Permalink
refactor: remove duplicate change event listener override (#7903)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Oct 2, 2024
1 parent d683e98 commit 24107e1
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/field-base/src/input-control-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,30 +128,6 @@ export const InputControlMixin = (superclass) =>
}
}

/**
* Override an event listener inherited from `InputMixin`
* to capture native `change` event and make sure that
* a new one is dispatched after validation runs.
* @param {Event} event
* @protected
* @override
*/
_onChange(event) {
event.stopPropagation();

this.validate();

this.dispatchEvent(
new CustomEvent('change', {
detail: {
sourceEvent: event,
},
bubbles: event.bubbles,
cancelable: event.cancelable,
}),
);
}

/**
* Override a method from `InputMixin`.
* @param {!HTMLElement} input
Expand Down

0 comments on commit 24107e1

Please sign in to comment.