Skip to content

3.0.7.7.2 - event.preventDefault()#38

Open
Laurenzak wants to merge 1 commit intoexstreme:Developfrom
Laurenzak:Develop
Open

3.0.7.7.2 - event.preventDefault()#38
Laurenzak wants to merge 1 commit intoexstreme:Developfrom
Laurenzak:Develop

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