From b7f58f9963d07bb1055bd6b89c18f05e5e4ac1e8 Mon Sep 17 00:00:00 2001 From: "Oliver.Chen" Date: Wed, 26 Feb 2025 22:06:05 +0800 Subject: [PATCH] =?UTF-8?q?BI-156033=20fix:=20callback=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E6=8B=BF=E5=88=B0=E7=9A=84=E9=85=8D=E7=BD=AE=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84=EF=BC=8Cset?= =?UTF-8?q?=E6=97=A0=E6=95=88=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/single/input/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/base/single/input/file.js b/packages/fineui/src/base/single/input/file.js index 63278b6e0..4721a0fb1 100644 --- a/packages/fineui/src/base/single/input/file.js +++ b/packages/fineui/src/base/single/input/file.js @@ -228,7 +228,7 @@ const sendFile = (toString => { attachO.filename = handler.file.fileName; if (handler.maxLength === 1) { handler.attach_array[0] = attachO; - // handler.attach_array.push(attachO); + // handler.attach_array.push(attachO); } else { handler.attach_array[current] = attachO; } @@ -585,8 +585,8 @@ export class File extends Widget { } _events(wrap) { - const { maxLength, errorText } = this.options; const callback = () => { + const { maxLength, errorText } = this.options; event.del(wrap.dom.input, "change", callback); const input = wrap.dom.input.cloneNode(true); const files = F(wrap.dom.input);