google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Consent mode On/off toggle button do not work if user clicks outside the disable conset mode modal #9099

Open mohitwp opened 3 months ago

mohitwp commented 3 months ago

Bug Description

If user do not click on 'Cancel' or 'Disable' button under modal and clicks outside the modal then it's gets close but toggle button stops working. After refreshing the page it starts working again.

Steps to reproduce

  1. Enable consent mode.
  2. Click on toggle button to disable it.
  3. Click outside of disable consent mode modal.
  4. Now click on Toggle button again.

Screenshots

https://github.com/user-attachments/assets/7a7e6620-b4b8-434b-a3c2-eb44617ba16a

Additional Context


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

mohitwp commented 3 months ago

Closing this ticket. Issue will address under https://github.com/google/site-kit-wp/issues/9137