From 57e3bb012ce8d3d518a94fad79aa20959b70bbf8 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 6 Aug 2019 07:06:42 +0800 Subject: [PATCH] [improvement] Dialog: optimize set data (#1830) --- packages/dialog/dialog.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/dialog/dialog.ts b/packages/dialog/dialog.ts index 17cc1fa8..2b461d8d 100644 --- a/packages/dialog/dialog.ts +++ b/packages/dialog/dialog.ts @@ -58,6 +58,8 @@ const Dialog: Dialog = options => { return new Promise((resolve, reject) => { const context = options.context || getContext(); const dialog = context.selectComponent(options.selector); + + delete options.context; delete options.selector; if (dialog) {