mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
side-bar unload logic fixed
This commit is contained in:
@ -85,6 +85,13 @@ export class SideBar extends common.SideBar {
|
||||
|
||||
this.ios.viewController = frame.topmost().currentPage.ios;
|
||||
}
|
||||
|
||||
public onUnloaded() {
|
||||
this.parent._removeView(this._mainContentHost);
|
||||
this._removeView(this._slideContentHost);
|
||||
|
||||
super.onUnloaded();
|
||||
}
|
||||
|
||||
public _onBindingContextChanged(oldValue: any, newValue: any) {
|
||||
super._onBindingContextChanged(oldValue, newValue);
|
||||
|
Reference in New Issue
Block a user