mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(overlays): update keyboard focus management
This commit is contained in:
@ -189,10 +189,26 @@ export class ViewController {
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean} Returns if this Page is the root page of the NavController.
|
||||
* @private
|
||||
*/
|
||||
isRoot(): boolean {
|
||||
return (this.index === 0);
|
||||
private isRoot(): boolean {
|
||||
// deprecated warning
|
||||
console.warn('ViewController isRoot() has been renamed to isFirst()');
|
||||
return this.isFirst();
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean} Returns if this Page is the first in the stack of pages within its NavController.
|
||||
*/
|
||||
isFirst(): boolean {
|
||||
return (this._nav ? this._nav.first() === this : false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean} Returns if this Page is the last in the stack of pages within its NavController.
|
||||
*/
|
||||
isLast(): boolean {
|
||||
return (this._nav ? this._nav.last() === this : false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user