fix(input): compositionend event is removed on unmount (#26806)

resolves #26805
This commit is contained in:
Joe Woodhouse
2023-02-16 16:15:30 +00:00
committed by GitHub
parent 89ad63135d
commit caa8719cea

View File

@ -298,7 +298,7 @@ export class Input implements ComponentInterface {
const nativeInput = this.nativeInput;
if (nativeInput) {
nativeInput.removeEventListener('compositionstart', this.onCompositionStart);
nativeInput.removeEventListener('compositionEnd', this.onCompositionEnd);
nativeInput.removeEventListener('compositionend', this.onCompositionEnd);
}
}