Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.7.7.2 - event.preventDefault() #38

Open
wants to merge 1 commit into
base: Develop
Choose a base branch
from

Conversation

Laurenzak
Copy link
Contributor

@Laurenzak Laurenzak commented May 23, 2021

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant