We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83d00a7 + 2aa326a commit b021292Copy full SHA for b021292
reference/forms/types/collection.rst
@@ -151,7 +151,7 @@ you need is this JavaScript code:
151
jQuery('.add-another-collection-widget').click(function (e) {
152
var list = jQuery(jQuery(this).attr('data-list-selector'));
153
// Try to find the counter of the list or use the length of the list
154
- var counter = list.data('widget-counter') | list.children().length;
+ var counter = list.data('widget-counter') || list.children().length;
155
156
// grab the prototype template
157
var newWidget = list.attr('data-prototype');
0 commit comments