diff --git a/src/utils/commonUtils.ts b/src/utils/commonUtils.ts index 20d830d..880d600 100644 --- a/src/utils/commonUtils.ts +++ b/src/utils/commonUtils.ts @@ -38,6 +38,9 @@ export function resolveOnChange< // }} // /> + // A bug report filed on WebKit's Bugzilla tracker, dating back to 2009, specifically addresses the issue of cloneNode() not copying files of elements. + // As of the last update, this bug was still marked as "NEW," indicating that it might not have been resolved yet​​. + // https://bugs.webkit.org/show_bug.cgi?id=28123 const currentTarget = target.cloneNode(true) as E; // click clear icon @@ -53,6 +56,9 @@ export function resolveOnChange< // Trigger by composition event, this means we need force change the input value if (target.type != 'file' && targetValue !== undefined) { + // A bug report filed on WebKit's Bugzilla tracker, dating back to 2009, specifically addresses the issue of cloneNode() not copying files of elements. + // As of the last update, this bug was still marked as "NEW," indicating that it might not have been resolved yet​​. + // https://bugs.webkit.org/show_bug.cgi?id=28123 const currentTarget = target.cloneNode(true) as E; event = Object.create(e, {