Skip to content

Commit 30d5ec2

Browse files
committed
Merge branch '5.0'
* 5.0: Fix count input on form collection
2 parents 46c973a + 8e14ac2 commit 30d5ec2

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
@@ -327,7 +327,7 @@ will be show next):
327327
328328
// count the current form inputs we have (e.g. 2), use that as the new
329329
// index when inserting a new item (e.g. 2)
330-
$collectionHolder.data('index', $collectionHolder.find(':input').length);
330+
$collectionHolder.data('index', $collectionHolder.find('input').length);
331331
332332
$addTagButton.on('click', function(e) {
333333
// add a new tag form (see next code block)

0 commit comments

Comments
 (0)