mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
side-bar unload logic fixed
This commit is contained in:
@ -86,6 +86,13 @@ export class SideBar extends common.SideBar {
|
|||||||
this.ios.viewController = frame.topmost().currentPage.ios;
|
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) {
|
public _onBindingContextChanged(oldValue: any, newValue: any) {
|
||||||
super._onBindingContextChanged(oldValue, newValue);
|
super._onBindingContextChanged(oldValue, newValue);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user