Closed peaemaye closed 15 hours ago
I think I've found the cause of this issue. The retrieveState method of api.js currently sets the _enabledServices before _acceptedServices so the enabled services don't include services read from the cc-cookie. I think reversing this order is sufficient to fix it.
See pull request #701
Expected Behavior
Should save the current service selection.
Current Behavior
All services are rejected and fire their onReject event.
Steps to reproduce
See this StackBlitz for a minimal repro: https://stackblitz.com/edit/stackblitz-starters-xtbkbf?file=index.js
Proposed fix or additional info.
See PR: https://github.com/orestbida/cookieconsent/pull/701
Version
3.0.1
On which browser do you see the issue?
Firefox, Chrome