mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
refactor(lifecycle): lifecycle methods prefixed w/ ionView
BREAKING CHANGES: - Lifecycle method prefixes have changed to `ionView` - `onPageLoaded` renamed to `ionViewLoaded` - `onPageWillEnter` renamed to `ionViewWillEnter` - `onPageDidEnter` renamed to `ionViewDidEnter` - `onPageWillLeave` renamed to `ionViewWillLeave` - `onPageDidLeave` renamed to `ionViewDidLeave` - `onPageWillUnload` renamed to `ionViewWillUnload` - `onPageDidUnload` renamed to `ionViewDidUnload`
This commit is contained in:
@ -271,7 +271,7 @@ class ActionSheetCmp {
|
||||
}
|
||||
}
|
||||
|
||||
onPageLoaded() {
|
||||
ionViewLoaded() {
|
||||
// normalize the data
|
||||
let buttons: any[] = [];
|
||||
|
||||
@ -305,7 +305,7 @@ class ActionSheetCmp {
|
||||
this.d.buttons = buttons;
|
||||
}
|
||||
|
||||
onPageDidEnter() {
|
||||
ionViewDidEnter() {
|
||||
let activeElement: any = document.activeElement;
|
||||
if (document.activeElement) {
|
||||
activeElement.blur();
|
||||
|
Reference in New Issue
Block a user