From 2204df9c5ad9596564b69aa33686174f0d83bff7 Mon Sep 17 00:00:00 2001 From: "Chris K. Thomas" <135461249+chriskthomas@users.noreply.github.com> Date: Sat, 29 Jun 2024 21:42:34 -0400 Subject: [PATCH] Fix description not restoring --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2c03d6c..93b8eaf 100644 --- a/src/index.js +++ b/src/index.js @@ -152,7 +152,7 @@ function loadFormFromLocalStorage() { const data = JSON.parse(localStorage.getItem("form")); if (data) { Object.keys(data).forEach((key) => { - let input = document.querySelector(`[name="${key}"]`); + let input = document.querySelector(`input[name="${key}"]`); // If the input is hidden, continue if (input && input.type === "hidden") {