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

[BUG] - The Top button #201

Open
sachinggsingh opened this issue Oct 30, 2024 · 2 comments
Open

[BUG] - The Top button #201

sachinggsingh opened this issue Oct 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sachinggsingh
Copy link

sachinggsingh commented Oct 30, 2024

Bug Title

Top button

Description

The top button does not work properly

Steps to Reproduce

Inspect the Button’s href or onclick Attribute:

Check if the button has an href="#", as this can cause the page to scroll to the top. Replace href="#" with href="javascript:void(0);" to prevent the default behavior of scrolling to the top.
If the button has an onclick event, ensure it's set up correctly to handle the intended action.
Review JavaScript Event Handling:

Inspect any JavaScript functions tied to the button to ensure they don't inadvertently cause page reload or scrolling.
If needed, add event.preventDefault(); within the function to stop any default scrolling behavior if the button is intended to perform a custom action.
Test and Verify Behavior:

After making the above adjustments, test the button's functionality to confirm it no longer redirects to the top of the page and performs the desired action.

Expected Behavior

It should so the top home screen when clicked

Environment

windows 11

Additional Context

No response

@sachinggsingh sachinggsingh added the bug Something isn't working label Oct 30, 2024
Copy link

👋 Thank you! Welcome to the project! Please follow these guidelines for smooth collaboration:

  1. After completing a task, add your name and details to the Contributors Table/List.
  2. Attach relevant screenshots or videos of your contribution for transparency.
  3. Tasks are assigned on a first-come, first-served basis.
    • Avoid spamming requests for already-assigned tasks.
    • Respect the queue and wait for new tasks.
  4. Propose New Ideas: Discuss new features or suggestions in the "Ideas" channel before starting work.

@sachinggsingh
Copy link
Author

Assign me this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant