Bad Logic for adding comments

When you click that blue button (for adding comments) more than once, it will create some more divs( add comment template), additionally when you hit cancel of the first comment template, all divs disappear even if you’ve written something in any div except the first one.

P.S : You can play around, if you want to understand more about this bug.

Please correct this !!