@legion40216
Posted
Good work on the project, There two easy fix regarding your problem
-
Remove the form tags The form tags have a auto refresh button when the key is pressed, So By removing the form tags this issue can be resolved. There is no need for the form tags regarding this app anyways because the data is not sent anywhere else its safe to remove it aswell
-
JS method through e.preventDefault() You have to write script by querySelecting the form element and placing onSubmit event handler and writing this function in it e.preventDefault()
btw your code is clean and well written keep it up
Marked as helpful