mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix(modals): regression with modals in angular (#6655)
This commit is contained in:

committed by
GitHub

parent
0b239d7a0a
commit
30df4d9c4a
@ -260,14 +260,13 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
|
||||
if (that._closeModalCallback) {
|
||||
const modalIndex = _rootModalViews.indexOf(that);
|
||||
_rootModalViews.splice(modalIndex);
|
||||
that._modalParent = null;
|
||||
that._modalContext = null;
|
||||
that._closeModalCallback = null;
|
||||
that._dialogClosed();
|
||||
parent._modal = null;
|
||||
|
||||
const whenClosedCallback = () => {
|
||||
that._modalParent = null;
|
||||
that._modalContext = null;
|
||||
that._closeModalCallback = null;
|
||||
that._dialogClosed();
|
||||
parent._modal = null;
|
||||
|
||||
if (typeof closeCallback === "function") {
|
||||
closeCallback.apply(undefined, originalArgs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user