From 48008248a03d4734a0e4306d7d3d4fcec78674db Mon Sep 17 00:00:00 2001
From: Punt13140 <33422215+Punt13140@users.noreply.github.com>
Date: Fri, 22 Oct 2021 00:51:43 +0200
Subject: [PATCH] Update form_collections.rst
Hi,
Shouldn't we add a delete link just to
childs instead of the parent ?
Thanks
---
form/form_collections.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/form/form_collections.rst b/form/form_collections.rst
index c58bf996235..0ab38902a17 100644
--- a/form/form_collections.rst
+++ b/form/form_collections.rst
@@ -531,7 +531,7 @@ First, add a "delete this tag" link to each tag form:
.. code-block:: javascript
- const tags = document.querySelectorAll('ul.tags')
+ const tags = document.querySelectorAll('ul.tags li')
tags.forEach((tag) => {
addTagFormDeleteLink(tag)
})