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

Message becomes visible after page refresh and cannot be closed. #77

Open
Jardo-51 opened this issue Mar 27, 2021 · 0 comments
Open

Message becomes visible after page refresh and cannot be closed. #77

Jardo-51 opened this issue Mar 27, 2021 · 0 comments

Comments

@Jardo-51
Copy link

vue & vue-cookie-law version

2.6.12, 1.13.3

Steps to reproduce

  1. Open page in incognito mode (fresh browser, cookie message shows)
  2. Close cookie message with Accept button (cookie message hides)
  3. Refresh page (cookie message is visible again and doesn't react to pressing the Accept button)

What is Expected?

Cookie message to remain closed after it has been closed with the Accept button and refreshing the page.

What is actually happening?

As mentioned, after I close the cookie message with the Accept button and refresh the page, the message reappears and cannot be closed anymore.

There are no errors in console. Local storage contains the value cookie:accepted=true. If I delete this value, and refresh the page, the message is shown and I'm able to close it. But if I refresh the page again, the message reappears and cannot be closed.

My code:

<v-footer>
    <cookie-law :message="$t('cookieConsent.message')" :buttonText="$t('cookieConsent.accept')" />
</v-footer>
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

No branches or pull requests

1 participant