fix(): scroll assists now recognizes inputs on inner pages and modals (#20864)

fixes #20843
This commit is contained in:
Liam DeBeasi
2020-03-25 11:45:56 -04:00
committed by GitHub
parent f340cb64c8
commit e2cba41e32
2 changed files with 2 additions and 14 deletions

View File

@ -200,18 +200,6 @@ export class Input implements ComponentInterface {
*/ */
@Event() ionFocus!: EventEmitter<void>; @Event() ionFocus!: EventEmitter<void>;
/**
* Emitted when the input has been created.
* @internal
*/
@Event() ionInputDidLoad!: EventEmitter<void>;
/**
* Emitted when the input has been removed.
* @internal
*/
@Event() ionInputDidUnload!: EventEmitter<void>;
/** /**
* Emitted when the styles change. * Emitted when the styles change.
* @internal * @internal
@ -222,7 +210,7 @@ export class Input implements ComponentInterface {
this.emitStyle(); this.emitStyle();
this.debounceChanged(); this.debounceChanged();
if (Build.isBrowser) { if (Build.isBrowser) {
this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', { document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
detail: this.el detail: this.el
})); }));
} }

View File

@ -174,7 +174,7 @@ export class Textarea implements ComponentInterface {
this.emitStyle(); this.emitStyle();
this.debounceChanged(); this.debounceChanged();
if (Build.isBrowser) { if (Build.isBrowser) {
this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', { document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
detail: this.el detail: this.el
})); }));
} }