diff --git a/themes/finc/js/lightbox_form_cache.js b/themes/finc/js/lightbox_form_cache.js index e9600633912091bfc99b64cf537ae9ae65fded10..a7ab0d90caa190f5ff9c3e0e2d1498f437c70ac7 100644 --- a/themes/finc/js/lightbox_form_cache.js +++ b/themes/finc/js/lightbox_form_cache.js @@ -26,7 +26,8 @@ document.addEventListener('DOMContentLoaded', function () { const cacheKeyBase = Array.from(form.attributes).map(attr => attr.value); const cacheKey = cacheKeyPrefix + btoa(cacheKeyBase.join()); - const inputs = Array.from(form.querySelectorAll('input:not([type=password])')); + const inputs = Array.from(form.querySelectorAll('input:not([type=password])')) + .concat(Array.from(form.querySelectorAll('textarea'))); JSON.parse(cache.getItem(cacheKey) || '[]').forEach(function (value, index) { inputs[index].value = value; });