Skip to content
← Back to activity

Public problem

react-calendly onEventScheduled stopped working: pageSettings colors with # break embed_domain

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

After upgrading react-calendly to v3, the onEventScheduled callback on CalendlyEventListener stopped firing. The iframe src URL contained pageSettings colors with a leading # (e.g. backgroundcolor=#fff). Calendly redirected that URL and dropped the embeddomain query parameter in the process, and without embeddomain the iframe cannot post messages back, so no events were received. Downgrading to 2.1.0 (where embeddomain was set differently) masked it.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Remove the # from all pageSettings color values: use "ffffff" instead of "#ffffff" for backgroundColor, primaryColor and textColor. The # breaks the embed URL, which makes Calendly drop the embeddomain query parameter, and without embeddomain no postMessage events (including onEventScheduled) can be received from the iframe. The reporter confirmed this fixed it. Source: https://github.com/tcampb/react-calendly/issues/108

Source: https://github.com/tcampb/react-calendly/issues/108