fix(validate-mixin): remove event listener on disconnect instead of add

This commit is contained in:
Michel Blankenstein 2020-08-17 13:58:31 +02:00 committed by Thomas Allmer
parent 07c598fd68
commit 4a228e671d

View file

@ -188,7 +188,7 @@ export const ValidateMixin = dedupeMixin(
disconnectedCallback() {
super.disconnectedCallback();
localize.addEventListener('localeChanged', this._updateFeedbackComponent);
localize.removeEventListener('localeChanged', this._updateFeedbackComponent);
}
firstUpdated(changedProperties) {