Fixed issue with replacing * in page flex collections (#2092)

Co-authored-by: Frederik <frederik@ferdynator.de>
This commit is contained in:
Frederik Schubert
2021-03-18 22:47:19 +01:00
committed by GitHub
parent 6f3a78eda0
commit 11737be3a9
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ export default class CollectionsField {
item.attr('data-collection-key', hasCustomKey ? observedValue : index);
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', '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'].forEach((prop) => {
item.find('[' + prop + '], [_' + prop + ']').each(function() {
let element = $(this);
let indexes = [];

View File

@@ -5581,7 +5581,7 @@ var CollectionsField = /*#__PURE__*/function () {
var hasCustomKey = observed.length;
var currentKey = item.data('collection-key-backup');
item.attr('data-collection-key', hasCustomKey ? observedValue : index);
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-grav-array-name'].forEach(function (prop) {
['name', 'data-grav-field-name', 'for', 'id', 'data-grav-file-settings', 'data-file-post-add', 'data-file-post-remove', 'data-grav-array-name'].forEach(function (prop) {
item.find('[' + prop + '], [_' + prop + ']').each(function () {
var element = external_jQuery_default()(this);
var indexes = [];