diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 5a9fa4666a..9af046d98b 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -200,18 +200,6 @@ export class Input implements ComponentInterface { */ @Event() ionFocus!: EventEmitter; - /** - * Emitted when the input has been created. - * @internal - */ - @Event() ionInputDidLoad!: EventEmitter; - - /** - * Emitted when the input has been removed. - * @internal - */ - @Event() ionInputDidUnload!: EventEmitter; - /** * Emitted when the styles change. * @internal @@ -222,7 +210,7 @@ export class Input implements ComponentInterface { this.emitStyle(); this.debounceChanged(); if (Build.isBrowser) { - this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', { + document.dispatchEvent(new CustomEvent('ionInputDidLoad', { detail: this.el })); } diff --git a/core/src/components/textarea/textarea.tsx b/core/src/components/textarea/textarea.tsx index 68030b1bd3..6a747118a9 100644 --- a/core/src/components/textarea/textarea.tsx +++ b/core/src/components/textarea/textarea.tsx @@ -174,7 +174,7 @@ export class Textarea implements ComponentInterface { this.emitStyle(); this.debounceChanged(); if (Build.isBrowser) { - this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', { + document.dispatchEvent(new CustomEvent('ionInputDidLoad', { detail: this.el })); }