(^ uses ES6 class, so please use a latest browser to test)
If I comment out the second
You need to add a
input of type
submit to make the form work. Check the following examples. Adding that will submit the form on pressing enter. If you don't want that submit button, you can hide it using css.