Steps to reproduce:
- Upload file through ajax file field.
- Remove the file by clicking on "Remove button"
- Repeat steps 1 and 2 a few times.
- Open inspector (F12) and check resulting markup (see attached screenshot).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | ajax-markup-after-736066-322.png | 9.34 KB | Anonymous (not verified) |
| ajax-markup.png | 161.88 KB | chi |
Comments
Comment #2
hgoto commentedI confirmed this problem occurs surely.
Drupal\file\Element\ManagedFile::uploadAjaxCallback()seems to be responsible for this process but I haven't understood what's wrong...Comment #7
Anonymous (not verified) commentedPart of this problem is will be solved after #736066: ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs
Comment #16
smustgrave commentedTried testing following steps in the description but was not able to replicate
If you still feel this is an issue please reopen with an updated issue summary and testing steps for how you are seeing this.
Thanks!