diff --git a/CHANGELOG.md b/CHANGELOG.md index aac99f59..bcca71ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ * Fixed issue in Admin favicon URL [#704](https://github.com/getgrav/grav-plugin-admin/issues/704) * Fixed issue in `selfupgrade` where the package would get downloaded in the wrong destination * Hide tab when user is not authorized to access it [#712](https://github.com/getgrav/grav-plugin-admin/issues/712) - + * Fixed Lists issue when reindexing, causing Radio fields to potentially lose their `checked` status + # v1.1.2 ## 07/16/2016 diff --git a/themes/grav/app/forms/fields/collections.js b/themes/grav/app/forms/fields/collections.js index 682ad681..e25f12da 100644 --- a/themes/grav/app/forms/fields/collections.js +++ b/themes/grav/app/forms/fields/collections.js @@ -82,6 +82,7 @@ export default class CollectionsField { items.each((index, item) => { item = $(item); + let observed = item.find('[data-key-observe]'); let observedValue = observed.val(); let hasCustomKey = observed.length; @@ -124,6 +125,10 @@ export default class CollectionsField { }); }); }); + + items.find('input[type="radio"][checked]').each((index, radio) => { + radio.checked = true; + }); } _onAddedNodes(event, target/* , record, instance */) {