Skip to content

Commit bce26da

Browse files
committed
bug #15981 [Form] Update form_collections.rst (Punt13140)
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead. Discussion ---------- [Form] Update form_collections.rst Hi, I followed the instruction, and if you add a delete button to the `<ul>` parent, you have a delete button with no `li` to delete. Thanks <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 4800824 Update form_collections.rst
2 parents fc6f616 + 4800824 commit bce26da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ First, add a "delete this tag" link to each tag form:
531531

532532
.. code-block:: javascript
533533
534-
const tags = document.querySelectorAll('ul.tags')
534+
const tags = document.querySelectorAll('ul.tags li')
535535
tags.forEach((tag) => {
536536
addTagFormDeleteLink(tag)
537537
})

0 commit comments

Comments
 (0)