The pointer-events-none class didn't take effect on Safari, leaving the imported switch still clickable when it was actually supposed to be disabled. This PR changes to an alternate implementation to accomplish the same. Tested manually on Safari, Chrome, and Firefox.
Changes
Follow-up fix to https://github.com/plausible/analytics/pull/4187
The
pointer-events-none
class didn't take effect on Safari, leaving the imported switch still clickable when it was actually supposed to be disabled. This PR changes to an alternate implementation to accomplish the same. Tested manually on Safari, Chrome, and Firefox.