Skip to content

Commit 8a253eb

Browse files
committed
fix(cookie-control): update local configuration on global change
1 parent 4264052 commit 8a253eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/components/CookieControl.vue

+2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ onBeforeMount(async () => {
310310
watch(
311311
() => cookiesEnabled.value,
312312
(current, _previous) => {
313+
localCookiesEnabled.value = [...(current || [])]
314+
313315
if (isConsentGiven.value) {
314316
Cookies.set(
315317
moduleOptions.cookieNameCookiesEnabledIds,

0 commit comments

Comments
 (0)