Skip to content

Commit

Permalink
fix(cookie-control): update local configuration on global change
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 14, 2023
1 parent 4264052 commit 8a253eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/components/CookieControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ onBeforeMount(async () => {
watch(
() => cookiesEnabled.value,
(current, _previous) => {
localCookiesEnabled.value = [...(current || [])]
if (isConsentGiven.value) {
Cookies.set(
moduleOptions.cookieNameCookiesEnabledIds,
Expand Down

0 comments on commit 8a253eb

Please sign in to comment.