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.
1 parent 9597f82 commit eb9e751Copy full SHA for eb9e751
reference/forms/types/collection.rst
@@ -152,7 +152,7 @@ you need is this JavaScript code:
152
jQuery('.add-another-collection-widget').click(function (e) {
153
var list = jQuery(jQuery(this).attr('data-list-selector'));
154
// Try to find the counter of the list or use the length of the list
155
- var counter = list.data('widget-counter') | list.children().length;
+ var counter = list.data('widget-counter') || list.children().length;
156
157
// grab the prototype template
158
var newWidget = list.attr('data-prototype');
0 commit comments