From 2bec393ad237c8f541643998e517a78f4bffd327 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 18 Dec 2024 15:21:42 -0700 Subject: [PATCH] Reset file upload progress list when clearing the value --- api/js/etemplate/et2_widget_file.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/js/etemplate/et2_widget_file.ts b/api/js/etemplate/et2_widget_file.ts index ab5ab85b32..7fa1a86ae3 100644 --- a/api/js/etemplate/et2_widget_file.ts +++ b/api/js/etemplate/et2_widget_file.ts @@ -358,6 +358,9 @@ export class et2_file extends et2_inputWidget this.input.wrap('
').closest('form').get(0).reset(); this.input.unwrap(); + // Reset progress + this.progress.empty(); + return; }