From d5e13933a4ef0b829038072df973c332e9595888 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Feb 2024 11:44:02 +0800 Subject: [PATCH] bugfix --- bricks/form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bricks/form.js b/bricks/form.js index 834a0f1..323a3a7 100644 --- a/bricks/form.js +++ b/bricks/form.js @@ -127,9 +127,9 @@ bricks.Form = class extends bricks.VBox { if (! opts.notoolbar) this.build_toolbar(this); } - redispatch_submited(args, event){ - console.log('redispatch_submited():args=',args, 'event=', event); - self.dispatch('submited', args); + redispatch_submited(event){ + console.log('redispatch_submited():'event=', event); + this.dispatch('submited', event.params); } build_toolbar(widget){ var box = new bricks.HBox({height:'auto', width:'100%'});