Ricardo118 patch collection (#2235)

* Update collections.js

* compile js
This commit is contained in:
Ricardo Verdugo
2022-02-10 01:26:02 +00:00
committed by GitHub
parent 06c12021d4
commit c673f93680
2 changed files with 3 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ export default class CollectionsField {
? observedValue
: index);
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name'].forEach((prop) => {
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name', 'data-grav-elements'].forEach((prop) => {
item.find('[' + prop + '], [_' + prop + ']').each(function() {
let element = $(this);
let indexes = [];