Jcomments-Recaptcha2
Jcomments-Recaptcha2 copied to clipboard
3.0.7.7.2 - event.preventDefault()
Prevents when you press the send or cancel button, the website jumps to the top of the page.
This problem is caused by <a href="#">
. Older versions have:
<a href="#" onclick="jcomments.saveComment();return false;
but the new versions: addEventListener (jcomments-v2.3.js).
The preventDefault() method cancels the event if it is cancelable. Link: "https://www.w3schools.com/jsref/event_preventdefault.asp"
Fixed when you press the send or cancel button, the website jumps to the top of the page. Updated "tpl_form.php" file. Added a missing php end-tag.