Skip to content

Commit 8a7cb9f

Browse files
committed
chore: comment more
1 parent 006990e commit 8a7cb9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utils/commonUtils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export function resolveOnChange<
3838
// }}
3939
// />
4040

41+
// A bug report filed on WebKit's Bugzilla tracker, dating back to 2009, specifically addresses the issue of cloneNode() not copying files of <input type="file"> elements.
42+
// As of the last update, this bug was still marked as "NEW," indicating that it might not have been resolved yet​​.
43+
// https://bugs.webkit.org/show_bug.cgi?id=28123
4144
const currentTarget = target.cloneNode(true) as E;
4245

4346
// click clear icon
@@ -53,6 +56,9 @@ export function resolveOnChange<
5356

5457
// Trigger by composition event, this means we need force change the input value
5558
if (target.type != 'file' && targetValue !== undefined) {
59+
// A bug report filed on WebKit's Bugzilla tracker, dating back to 2009, specifically addresses the issue of cloneNode() not copying files of <input type="file"> elements.
60+
// As of the last update, this bug was still marked as "NEW," indicating that it might not have been resolved yet​​.
61+
// https://bugs.webkit.org/show_bug.cgi?id=28123
5662
const currentTarget = target.cloneNode(true) as E;
5763

5864
event = Object.create(e, {

0 commit comments

Comments
 (0)