Skip to content

Commit

Permalink
Fix description not restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskthomas authored Jun 30, 2024
1 parent 947e3b3 commit 2204df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 2204df9

Please sign in to comment.