Jcomments-Recaptcha2 icon indicating copy to clipboard operation
Jcomments-Recaptcha2 copied to clipboard

3.0.7.7.2 - event.preventDefault()

Open Laurenzak opened this issue 3 years ago • 0 comments

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.

Laurenzak avatar May 23 '21 18:05 Laurenzak