Skip to content

Commit ae9ecff

Browse files
author
VladimirAmiorkov
committed
fix(hmr): close modal views during livesync #7668
1 parent 3632256 commit ae9ecff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tns-core-modules/ui/core/view/view-common.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
153153
}
154154

155155
public _onLivesync(context?: ModuleContext): boolean {
156+
if (_rootModalViews) {
157+
_rootModalViews.forEach(v => {
158+
v.closeModal();
159+
});
160+
161+
return true;
162+
}
163+
156164
if (traceEnabled()) {
157165
traceWrite(`${this}._onLivesync(${JSON.stringify(context)})`, traceCategories.Livesync);
158166
}

0 commit comments

Comments
 (0)