Strange problem with my wiki viewer

my wiki viewer doesn’t work unless you make the same entry twice consecutively. i have had massive struggles with the wiki API and I can’t figure out why this is happening or how to fix this issue.

This fixes it

seaBtn.addEventListener("click", function(event) { // << every handler gets passed an event object
     event.preventDefault(); // <<< This stops your form from performing its default action - submitting
//...
}
1 Like

@PortableStick thank you, That fixed the problem.