Skip to content

Commit af720e9

Browse files
committed
Fix setting forms which are used later
1 parent 5e2c95c commit af720e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jquery.formset.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@
9191
// and hide it, then let Django handle the deleting:
9292
del.val('on');
9393
row.hide();
94+
forms = $('.' + options.formCssClass).not(':hidden');
9495
} else {
9596
row.remove();
97+
forms = $('.' + options.formCssClass).not('.formset-custom-template');
9698
}
9799
for (var i=0, formCount=forms.length; i<formCount; i++) {
98100
// Apply `extraClasses` to form rows so they're nicely alternating:

0 commit comments

Comments
 (0)