G
G
George2019-06-10 22:27:18
JavaScript
George, 2019-06-10 22:27:18

How to make the list work correctly?

Prelude: compared to the old working version, the screen of which I have, nothing has changed (or it just seems to me).
The to-do list is broken! All tasks in it take the name of the past and come out something like "Pet the cat. Pet the cat. Pet the cat. Pet the cat." Note: when reloading the page and creating new task items, only those tasks that were created only in this session will inherit the name of the last created task, that is, it will be like this - "Pet the cat. Pet the cat. Pet the cat. Pet the cat. Cook dumplings. Cook dumplings ." I don't have the slightest idea what's going wrong.
I provide the code. Fortunately for you, I wrote a few comments (in some places they are wrong), so it will be easier to understand it. Thank you all in advance! https://codepen.io/anon/pen/zVYONj?editors=1010#an...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question