Skip to content

Commit 4800824

Browse files
smbpuntwouterj
authored andcommitted
Update form_collections.rst
Hi, Shouldn't we add a delete link just to <li> childs instead of the <ul> parent ? Thanks
1 parent fc6f616 commit 4800824

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)