fed1k / Personal-Portfolio.github.io

This webpage is my Personal Portfolio
7 stars 0 forks source link

Bug found in feature to persist form data in local storage #25

Open hsztan opened 2 years ago

hsztan commented 2 years ago

https://github.com/fed1k/Personal-Portfolio.github.io/blob/73379e90bce5d8a52b0d47f4c11d3758222f32ba/app.js#L190

In order to select various node items please try using document.querySelectorAll('input') instead of document.querySelector('input'). Current code is only selecting one element therefore inputs.forEach() is throwing a Type Error because forEach is not a function of an element (you cannot iterate through one element). ↻