mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(popup): fixed subtitle passing between popups
this._defaults was getting all of opts properties added to it every time a popup was opened, switched it so this_defaults wouldn’t be modified and opts would get its properties. Closes #342
This commit is contained in:
@@ -82,7 +82,7 @@ export class Popup {
|
||||
opts.promiseResolve = resolve;
|
||||
opts.promiseReject = reject;
|
||||
|
||||
return this.ctrl.open(OVERLAY_TYPE, PopupCmp, util.extend(this._defaults, opts));
|
||||
return this.ctrl.open(OVERLAY_TYPE, PopupCmp, util.extend(opts, this._defaults));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -129,7 +129,6 @@ export class Popup {
|
||||
button
|
||||
]
|
||||
}, opts);
|
||||
|
||||
return this.open(opts);
|
||||
}
|
||||
|
||||
@@ -245,7 +244,6 @@ export class Popup {
|
||||
cancelButton, okButton
|
||||
]
|
||||
}, opts);
|
||||
|
||||
return this.open(opts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user