Skip to content

[bugFix] Element Image click pushes you back to the top of the page i… #260

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

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

Conversation

kummadhi
Copy link
Contributor

@kummadhi kummadhi commented Apr 3, 2025

Fixed the issue where Element Image click pushes you back to the top of the page instead of the relevant page

BEFORE the fix:

Screen.Recording.2025-04-03.at.2.38.24.PM.mov

AFTER the fix:

Screen.Recording.2025-04-03.at.2.38.44.PM.mov

tocLinks.forEach((link) => {
link.addEventListener('click', () => {
this.closeToggleTOC(); // Close the TOC when a link is clicked
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only added this part... other changes are generated by auto linting

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.

2 participants