Skip to content

Commit 948b628

Browse files
author
farfromrefuge
committed
fix(dialogs): closeCallback support only one return argument
1 parent 81e8502 commit 948b628

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dialogs/dialogs.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function prepareAndCreateAlertDialog(
228228
if ((builder as any)._currentModalCustomView) {
229229
const view = (builder as any)._currentModalCustomView as View;
230230
const context = options.context || {};
231-
context.closeCallback = function (...originalArgs) {
231+
context.closeCallback = function (originalArgs) {
232232
onDone(originalArgs, dlg);
233233
// if (callback) {
234234
// callback.apply(this, originalArgs);

src/dialogs/dialogs.ios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function createAlertController(options: DialogOptions & MDCAlertControlerOptions
224224

225225
alertController._resolveFunction = resolve;
226226
const context = options.context || {};
227-
context.closeCallback = function (...originalArgs) {
227+
context.closeCallback = function (originalArgs) {
228228
if (alertController._resolveFunction) {
229229
alertController._resolveFunction.apply(this, originalArgs);
230230
alertController._resolveFunction = null;

0 commit comments

Comments
 (0)