Skip to content

[Bug]: Clicking Save Preferences button rejects all services regardless of toggle state #700

@peaemaye

Description

@peaemaye

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

  1. Click Open Preview in new tab icon to open in new window that will retain cookies on reload.
  2. Open F12 developer tools to see console.log entries.
  3. Click Accept all to accept all categories/services.
  4. Press F5 to reload the page.
  5. Click the Show preferences modal button to open the preferences window.
  6. Expand the Analytics cookies section to see that Service1 and Service2 are active.
  7. Click Save preferences to save the current selection without making any changes.

Proposed fix or additional info.

See PR: #701

Version

3.0.1

On which browser do you see the issue?

Firefox, Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions