mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +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) {
|
if (that._closeModalCallback) {
|
||||||
const modalIndex = _rootModalViews.indexOf(that);
|
const modalIndex = _rootModalViews.indexOf(that);
|
||||||
_rootModalViews.splice(modalIndex);
|
_rootModalViews.splice(modalIndex);
|
||||||
|
that._modalParent = null;
|
||||||
|
that._modalContext = null;
|
||||||
|
that._closeModalCallback = null;
|
||||||
|
that._dialogClosed();
|
||||||
|
parent._modal = null;
|
||||||
|
|
||||||
const whenClosedCallback = () => {
|
const whenClosedCallback = () => {
|
||||||
that._modalParent = null;
|
|
||||||
that._modalContext = null;
|
|
||||||
that._closeModalCallback = null;
|
|
||||||
that._dialogClosed();
|
|
||||||
parent._modal = null;
|
|
||||||
|
|
||||||
if (typeof closeCallback === "function") {
|
if (typeof closeCallback === "function") {
|
||||||
closeCallback.apply(undefined, originalArgs);
|
closeCallback.apply(undefined, originalArgs);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user