From b08d2cc50c2f6474111c3b89a703cb3c0b0d1c27 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Sep 2025 11:34:02 +0800 Subject: [PATCH] bugfix --- bricks/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/input.js b/bricks/input.js index b065320..2ec584c 100644 --- a/bricks/input.js +++ b/bricks/input.js @@ -584,6 +584,7 @@ bricks.UiVideo =class extends bricks.UiFile { accept_video(camera, event){ camera.dismiss(); this.value = event.params + console.log('record finished, value=', this.value); this.dispatch('changed', this.value); } show_video(event){ @@ -607,7 +608,6 @@ bricks.UiVideo =class extends bricks.UiFile { audoplay: true, width:'100%' }); - this.value = file; this.preview.add_widget(vw); return; } @@ -618,7 +618,7 @@ bricks.UiVideo =class extends bricks.UiFile { autoplay: true, width:'100%' }); - this.value = e.target.result; + console.log('show video', e.target.result); this.preview.add_widget(imgw); }; reader.readAsDataURL(file);