mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(): scroll assists now recognizes inputs on inner pages and modals (#20864)
fixes #20843
This commit is contained in:
@ -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
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user