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]: Unexpected Page Jump after using Button to open #723

Open
Paulexe opened this issue Aug 27, 2024 · 0 comments
Open

[Bug]: Unexpected Page Jump after using Button to open #723

Paulexe opened this issue Aug 27, 2024 · 0 comments
Labels
bug Something isn't working triage yet to be reviewed

Comments

@Paulexe
Copy link

Paulexe commented Aug 27, 2024

Expected Behavior

After opening the cookie banner using the "Show Preferences" or "Show Cookie Banner" button, the page should stay in its current scroll position when the user accepts or rejects the cookies.

Current Behavior

The page unexpectedly jumps back to the position of the "Show Preferences" or "Show Cookie Banner" button, which disrupts the user experience. This issue does not occur in Safari.

Steps to reproduce

On the CookieConsent v3.0.1 Playground :

  1. Open the cookie banner using the "Show Preferences Modal" button.
  2. Scroll the button out of the viewport.
  3. Accept or reject cookies.

Proposed fix or additional info.

Maybe a config option for this?

Version

3.0.1

On which browser do you see the issue?

Firefox, Chrome, Microsoft Edge

@Paulexe Paulexe added the bug Something isn't working label Aug 27, 2024
@github-actions github-actions bot added the triage yet to be reviewed label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage yet to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant