Commit 67caa3a
committed
Initialise FileUploadField only on the newly added collection item
'ea.collection.item-added' was re-running the document-wide query for file upload inputs, which double-bound the change/click handlers on every already-processed field and could prevent the new field from displaying selected files reliably (Bootstrap markup variations exposed this further).
Scope the query to event.detail.newElement, and guard each input with a data-ea-fileupload-initialized flag so re-entry is safe.
Fixes #66371 parent 9cd95ee commit 67caa3a
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
10 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
0 commit comments